Skip to content

Commit

Permalink
Add CI for building release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
KyrietS committed Jun 19, 2023
1 parent e798d8e commit 8d0cadf
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Release

on:
release:
types: [published]

jobs:
windows:
name: Windows release
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target trex --config Release
- name: pack binary
run: |
move build\Release\trex.lib .
7z a -tzip trex.zip trex.lib
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: trex-windows-msvc-x64
path: trex.zip

linux:
name: Linux release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: build
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --target trex --config Release
- name: pack binary
run: |
mv build/trex.a .
tar -czf trex.tar.gz trex.a
- name: upload artifact
uses: actions/upload-artifact@v2
with:
name: trex-linux-gcc-x64
path: trex.tar.gz

0 comments on commit 8d0cadf

Please sign in to comment.