-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (64 loc) · 2.21 KB
/
build.yml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: build
on:
push:
tags:
- 'v*.*.*'
env:
CARGO_TERM_COLOR: always
jobs:
build_linux:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Build binary
run: cargo build --release --package fastgmad-bin --bin fastgmad
- name: Build publishing library
run: cargo build --release --package fastgmad-publish --features binary
- name: Zip
run: |
7z a -tzip -mx=9 target/release/fastgmad_linux.zip ./target/release/fastgmad ./target/release/libfastgmad_publish.so ./steam_api_sdk/redistributable_bin/linux64/libsteam_api.so
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/fastgmad_linux.zip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
build_windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Build binary
run: cargo build --release --package fastgmad-bin --bin fastgmad
- name: Build publishing library
run: cargo build --release --package fastgmad-publish --features binary
env:
RUSTFLAGS: -Ctarget-feature=+crt-static
- name: Zip
run: |
7z a -tzip -mx=9 target/release/fastgmad_windows.zip ./target/release/fastgmad.exe ./target/release/fastgmad_publish.dll ./steam_api_sdk/redistributable_bin/win64/steam_api64.dll
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/fastgmad_windows.zip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build binary
run: cargo build --release --package fastgmad-bin --bin fastgmad
- name: Build publishing library
run: cargo build --release --package fastgmad-publish --features binary
- name: Zip
run: |
7z a -tzip -mx=9 target/release/fastgmad_macos.zip ./target/release/fastgmad ./target/release/libfastgmad_publish.dylib ./steam_api_sdk/redistributable_bin/osx/libsteam_api.dylib
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
target/release/fastgmad_macos.zip
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}