[CI] Formatting
This commit is contained in:
parent
42c378db0c
commit
5eecb4e65d
|
@ -47,48 +47,38 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
name: Lint
|
name: Lint
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
- name: Check Clang-Format Version
|
||||||
|
run: clang-format --version
|
||||||
- name: Check Clang-Format Version
|
- name: Lint
|
||||||
run: clang-format --version
|
run: .\xb lint --all
|
||||||
|
|
||||||
- name: Lint
|
|
||||||
run: .\xb lint --all
|
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Build (Windows) # runner.os can't be used here
|
name: Build (Windows) # runner.os can't be used here
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
|
needs: lint
|
||||||
env:
|
env:
|
||||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||||
needs: lint
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Setup
|
- name: Setup
|
||||||
run: .\xb setup
|
run: .\xb setup
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: .\xb build --config=Release --target=src\xenia-app
|
run: .\xb build --config=Release --target=src\xenia-app
|
||||||
|
|
||||||
- name: Prepare artifacts
|
- name: Prepare artifacts
|
||||||
run: |
|
run: |
|
||||||
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
||||||
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_canary xenia_canary.exe xenia_canary.pdb LICENSE /r:0 /w:0
|
robocopy build\bin\${{ runner.os }}\Release artifacts\xenia_canary xenia_canary.exe xenia_canary.pdb LICENSE /r:0 /w:0
|
||||||
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
If ($LastExitCode -le 7) { echo "LastExitCode = $LastExitCode";$LastExitCode = 0 }
|
||||||
|
|
||||||
- name: Upload xenia canary artifacts
|
- name: Upload xenia canary artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: xenia_canary
|
name: xenia_canary
|
||||||
path: artifacts\xenia_canary
|
path: artifacts\xenia_canary
|
||||||
if-no-files-found: error
|
if-no-files-found: error
|
||||||
|
|
||||||
- name: Create release
|
- name: Create release
|
||||||
if: |
|
if: |
|
||||||
github.repository == 'xenia-canary/xenia-canary' &&
|
github.repository == 'xenia-canary/xenia-canary' &&
|
||||||
|
|
Loading…
Reference in New Issue