-
Notifications
You must be signed in to change notification settings - Fork 78
75 lines (72 loc) · 2 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
70
71
72
73
74
75
name: build
on:
push:
branches: [ main ]
tags:
- 'v*'
pull_request:
branches: [ main ]
merge_group:
env:
CARGO_TERM_COLOR: always
jobs:
x64:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: Swatinem/rust-cache@v2
- name: build
run: eng/ci.sh
- name: Run tests
run: sudo target/x86_64-unknown-linux-musl/release/avml --compress output.lime
- name: upload artifacts
uses: actions/[email protected]
with:
name: linux-x86-64-artifacts
path: |
target/*/release/avml
target/*/release/avml-minimal
target/*/release/avml-convert
target/*/release/avml-upload
arm64:
runs-on: ubuntu-22.04-arm
steps:
- uses: actions/[email protected]
- uses: Swatinem/rust-cache@v2
- name: build
run: eng/ci.sh
- name: Run tests
run: sudo target/aarch64-unknown-linux-musl/release/avml --compress output.lime
- name: upload artifacts
uses: actions/[email protected]
with:
name: linux-aarch64-artifacts
path: |
target/*/release/avml
target/*/release/avml-minimal
target/*/release/avml-convert
target/*/release/avml-upload
windows:
runs-on: windows-latest
steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/[email protected]
- uses: Swatinem/rust-cache@v2
- name: build avml-convert
run: cargo build --release --bin avml-convert --locked
- name: build avml-upload
run: cargo build --release --bin avml-upload --locked
- name: Run tests
run: cargo test
- name: upload artifacts
uses: actions/[email protected]
with:
name: windows-artifacts
path: |
target/release/avml-convert.exe
target/release/avml_convert.pdb
target/release/avml-upload.exe
target/release/avml_upload.pdb