-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.71 KB
/
build_x86.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
name: Build for x86
on:
push:
branches: [ "master" ]
paths:
- 'src/**'
- '.github/workflows/build_x86.yaml'
- 'build.rs'
- 'Cargo.toml'
- 'Cargo.lock'
pull_request:
branches: [ "master" ]
paths:
- 'src/**'
- '.github/workflows/build_x86.yaml'
- 'build.rs'
- 'Cargo.toml'
- 'Cargo.lock'
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Build GNU static linked
run: RUSTFLAGS="-C target-feature=+crt-static" cargo build --target=x86_64-unknown-linux-gnu --release --verbose
- name: Build musl static linked
run: |
rustup target add x86_64-unknown-linux-musl
cargo build --target=x86_64-unknown-linux-musl --release --verbose
- run: |
mv target/x86_64-unknown-linux-musl/release/rwpspread target/x86_64-unknown-linux-musl/release/rwpspread_musl
- name: Generate Checksums
run: |
sha512sum target/x86_64-unknown-linux-gnu/release/rwpspread > target/x86_64-unknown-linux-gnu/release/rwpspread.sha512sum
sha512sum target/x86_64-unknown-linux-musl/release/rwpspread_musl > target/x86_64-unknown-linux-musl/release/rwpspread_musl.sha512sum
- name: Upload release files
uses: actions/upload-artifact@v4
with:
name: rwpspread-x86
path: |
target/x86_64-unknown-linux-gnu/release/rwpspread
target/x86_64-unknown-linux-gnu/release/rwpspread.sha512sum
target/x86_64-unknown-linux-musl/release/rwpspread_musl
target/x86_64-unknown-linux-musl/release/rwpspread_musl.sha512sum