-
Notifications
You must be signed in to change notification settings - Fork 10
39 lines (32 loc) · 958 Bytes
/
test.yaml
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
name: test
on:
push:
branches:
- '**'
pull_request:
branches:
- master
workflow_dispatch: {}
defaults:
run:
shell: bash
jobs:
run-test:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- uses: Swatinem/rust-cache@v1
- run: cargo install just
# There is some kind of breakage in Rust, related to `ld` (GNU linker), that breaks the build on Github Actions.
# It appears to primarily impact macro crates, as that's when the compilation fails here,
# and the Github issue also mentions it failing in a macro crate.
# See:
# https://github.com/rust-lang/rust/issues/113104
# https://github.com/rust-lang/rust/issues/111888
# Use `lld` (Clang linker) until issue is fixed
- run: RUSTFLAGS="-Clinker=clang -Clink-arg=-fuse-ld=lld" just test