-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.23 KB
/
rust_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
# .github/workflows/build.yml
name: Build
on:
push:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
# Checkout the repository
- uses: actions/checkout@master
# Set up the Rust toolchain
- name: Run tests
run: cd ./soda_resource_tools_lib && cargo build && cargo test -- --test-threads=1
# Compile the project
- name: Compile x86_64-unknown-linux-musl
uses: rust-build/rust-build.action@v1.4.4
with:
RUSTTARGET: x86_64-unknown-linux-musl
UPLOAD_MODE: none
# Compile the project
- name: Compile x86_64-apple-darwin
uses: rust-build/rust-build.action@v1.4.4
with:
RUSTTARGET: x86_64-apple-darwin
UPLOAD_MODE: none
# Compile the project
- name: Compile x86_64-pc-windows-gnu
uses: rust-build/rust-build.action@v1.4.4
with:
RUSTTARGET: x86_64-pc-windows-gnu
UPLOAD_MODE: none
# Upload the artifact
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: Binary
path: |
${{ steps.compile.outputs.BUILT_ARCHIVE }}
${{ steps.compile.outputs.BUILT_CHECKSUM }}