ci: moar semantics (lol)
This commit is contained in:
parent
a2f9a1b5ba
commit
2e6bc77716
|
|
@ -1,13 +1,12 @@
|
||||||
name: CI
|
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-windows:
|
build-win_x64:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
configuration: [release, debug]
|
configuration: [release, debug]
|
||||||
|
|
||||||
name: Build (Windows)
|
name: build (win_x64)
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
|
@ -39,7 +38,7 @@ jobs:
|
||||||
- name: Build (Ninja)
|
- name: Build (Ninja)
|
||||||
run: ninja -C build
|
run: ninja -C build
|
||||||
|
|
||||||
# ouch - unless and until we start using CMake's install command, these commands are a necessary evil
|
# ouch - unless and until we start using CMake's install command, these next few commands are a necessary evil
|
||||||
- name: Organize binaries
|
- name: Organize binaries
|
||||||
run: mkdir build/dist && mv build/*.exe build/dist && cd build/dist && for x in *.exe; do mv $x "RNR.$x"; done && cd ../../
|
run: mkdir build/dist && mv build/*.exe build/dist && cd build/dist && for x in *.exe; do mv $x "RNR.$x"; done && cd ../../
|
||||||
|
|
||||||
|
|
@ -58,8 +57,12 @@ jobs:
|
||||||
- name: Add resources
|
- name: Add resources
|
||||||
run: cp -R Content/RNR build/dist/content && cp LICENSE build/dist
|
run: cp -R Content/RNR build/dist/content && cp LICENSE build/dist
|
||||||
|
|
||||||
|
- name: Set output variables
|
||||||
|
id: vars
|
||||||
|
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: RNR (win_x64-${{ matrix.configuration }}-${{ github.sha }})
|
name: RNR (${{ steps.vars.outputs.sha_short }}-${{ matrix.configuration }}-win_x64)
|
||||||
path: build/dist
|
path: build/dist
|
||||||
Loading…
Reference in New Issue