-
Notifications
You must be signed in to change notification settings - Fork 17
42 lines (39 loc) · 1002 Bytes
/
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
name: Build
env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
CARGO_NET_GIT_FETCH_WITH_CLI: true
CI: 1
RUST_BACKTRACE: short
RUSTFLAGS: "-D warnings -W rust-2021-compatibility"
RUSTUP_MAX_RETRIES: 10
on:
pull_request:
branches: [ "master", "status" ]
push:
branches: [ "master", "status" ]
jobs:
build:
name: "Build Sword"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: zorp-corp/rust-cache@v2
with:
workspaces: ". -> target"
# Test building and running are split for caching and build time tracking purposes
# XX need to fix all the tests
#- name: Build tests
# run: cargo test --no-run
#- name: Run tests
# run: cargo test
- name: Ensure Miri is installed
run: rustup component add miri
- name: Build
run: cargo build
# Need to fix ibig tests first.
# - name: Build
# run: cargo test
# - name: Build
# run: cargo miri test