Skip to content

Commit

Permalink
.NET: Attempt at getting CI builds going
Browse files Browse the repository at this point in the history
  • Loading branch information
praydog committed Apr 2, 2024
1 parent f112fac commit bf7e056
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,38 @@ on: [push, workflow_dispatch]
env:
BUILD_TYPE: Release
jobs:
csharp-release:
runs-on: windows-latest
strategy:
matrix:
target: [csharp-api]
steps:
- name: Set up Python
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c
with:
python-version: "3.12"

- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11

- name: Configure CMake
run: cmake -S ${{github.workspace}}/csharp-api -B ${{github.workspace}}/csharp-api/build -G "Visual Studio 17 2022" -A x64 -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}

- name: Build
run: cmake --build ${{github.workspace}}/csharp-api/build --config ${{env.BUILD_TYPE}} --target ALL_BUILD

- name: Compress release
run: |
python ${{github.workspace}}/csharp-api/make-symlinks.py --gamedir="${{github.workspace}}/csharp-api" --just_copy=True
7z a ${{github.workspace}}/${{matrix.target}}.zip ${{github.workspace}}/csharp-api/reframework
- name: Upload artifacts
uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3
with:
name: ${{matrix.target}}
path: ${{github.workspace}}/${{matrix.target}}.zip
if-no-files-found: error

dev-release:
runs-on: windows-latest
strategy:
Expand Down

0 comments on commit bf7e056

Please sign in to comment.