-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (42 loc) · 1.1 KB
/
release.yml
File metadata and controls
45 lines (42 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
name: Release
on:
workflow_dispatch:
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@v4
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/libtrex.a .
tar -czf trex.tar.gz libtrex.a
- name: upload artifact
uses: actions/upload-artifact@v4
with:
name: trex-linux-gcc-x64
path: trex.tar.gz