mirror of
https://github.com/xenia-project/xenia.git
synced 2025-12-06 07:12:03 +01:00
[CI] Only build release
This commit is contained in:
parent
72df2129a0
commit
3b49054d6b
5
.github/workflows/Linux_build.yml
vendored
5
.github/workflows/Linux_build.yml
vendored
|
|
@ -51,12 +51,11 @@ jobs:
|
||||||
# run: ./xb lint --all
|
# run: ./xb lint --all
|
||||||
|
|
||||||
build-linux:
|
build-linux:
|
||||||
name: Build (Linux, ${{ matrix.configuration }}, LLVM ${{ matrix.llvm_version }}) # runner.os can't be used here
|
name: Build (Linux, LLVM ${{ matrix.llvm_version }}) # runner.os can't be used here
|
||||||
# needs: lint
|
# needs: lint
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
configuration: [Release, Debug]
|
|
||||||
llvm_version: [15] #[15, 16, 17, 18, 19]
|
llvm_version: [15] #[15, 16, 17, 18, 19]
|
||||||
runs-on: ubuntu-24.04
|
runs-on: ubuntu-24.04
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -79,4 +78,4 @@ jobs:
|
||||||
sudo apt-get -y install mesa-vulkan-drivers valgrind libc++-dev libc++abi-dev libgtk-3-dev libsdl2-dev libvulkan-dev libx11-dev libx11-xcb-dev clang-$LLVM_VERSION clang-format-$LLVM_VERSION llvm-$LLVM_VERSION
|
sudo apt-get -y install mesa-vulkan-drivers valgrind libc++-dev libc++abi-dev libgtk-3-dev libsdl2-dev libvulkan-dev libx11-dev libx11-xcb-dev clang-$LLVM_VERSION clang-format-$LLVM_VERSION llvm-$LLVM_VERSION
|
||||||
./xb setup
|
./xb setup
|
||||||
- name: Build
|
- name: Build
|
||||||
run: ./xb build --config=${{ matrix.configuration }}
|
run: ./xb build --config=Release
|
||||||
|
|
|
||||||
14
.github/workflows/Windows_build.yml
vendored
14
.github/workflows/Windows_build.yml
vendored
|
|
@ -59,13 +59,12 @@ jobs:
|
||||||
run: .\xb lint --all
|
run: .\xb lint --all
|
||||||
|
|
||||||
build-windows:
|
build-windows:
|
||||||
name: Build (Windows, VS${{ matrix.vsver }}, ${{ matrix.configuration }}) # runner.os can't be used here
|
name: Build (Windows, VS${{ matrix.vsver }}) # runner.os can't be used here
|
||||||
needs: lint
|
needs: lint
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
vsver: [2022]
|
vsver: [2022]
|
||||||
configuration: [Release, Debug, Checked]
|
|
||||||
runs-on: windows-${{ matrix.vsver }}
|
runs-on: windows-${{ matrix.vsver }}
|
||||||
env:
|
env:
|
||||||
POWERSHELL_TELEMETRY_OPTOUT: 1
|
POWERSHELL_TELEMETRY_OPTOUT: 1
|
||||||
|
|
@ -78,11 +77,10 @@ jobs:
|
||||||
- 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
|
||||||
if: matrix.configuration == 'Release'
|
|
||||||
id: prepare_artifacts
|
id: prepare_artifacts
|
||||||
run: |
|
run: |
|
||||||
robocopy . build\bin\${{ runner.os }}\Release LICENSE /r:0 /w:0
|
robocopy . build\bin\Windows\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\Windows\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
|
||||||
if: steps.prepare_artifacts.outcome == 'success'
|
if: steps.prepare_artifacts.outcome == 'success'
|
||||||
|
|
@ -101,12 +99,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# REMOVE THIS IF UNNEEDED v
|
|
||||||
if [ ${{ matrix.configuration }} != Release ]; then
|
|
||||||
echo "::error::Can only create release for Release build"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
# REMOVE THIS IF UNNEEDED ^
|
|
||||||
$asset="xenia_canary.zip"
|
$asset="xenia_canary.zip"
|
||||||
rm -recurse -force artifacts\xenia_canary\*.pdb # Ideally this would use xr, but I can't get it to work
|
rm -recurse -force artifacts\xenia_canary\*.pdb # Ideally this would use xr, but I can't get it to work
|
||||||
7z a $asset .\artifacts\xenia_canary\*
|
7z a $asset .\artifacts\xenia_canary\*
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue