-
Notifications
You must be signed in to change notification settings - Fork 3
34 lines (26 loc) · 891 Bytes
/
master.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
on:
push:
branches: ['master']
name: Master - Build, Unit Test, Integration test
jobs:
integration-tests:
uses: ./.github/workflows/integration_test.yml
build-static:
name: Build Static
needs: integration-tests
runs-on: ubuntu-latest
steps:
- name: Install musl-gcc
run: sudo apt-get install -y musl-tools
- name: Checkout sources
uses: actions/checkout@v3
- name: Add musl target
run: rustup target add x86_64-unknown-linux-musl
- name: Build static binary
run: cargo build --target=x86_64-unknown-linux-musl --release
- name: Check linkage
run: ldd ./target/x86_64-unknown-linux-musl/release/kiryuu
- uses: actions/upload-artifact@v3
with:
name: kiryuu-static-${{ github.sha }}
path: ./target/x86_64-unknown-linux-musl/release/kiryuu