-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.58 KB
/
ci.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
name: Continuous Integration
on:
push:
branches:
- main
tags:
- v*
pull_request:
branches:
- main
jobs:
build:
strategy:
matrix:
build_configuration:
- target: x86_64-unknown-linux-gnu
cpu: native
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}-${{ matrix.build_configuration.target }}-${{ matrix.build_configuration.cpu }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'false'
set-safe-directory: 'true'
- name: Setup SSH Keys and known_hosts
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.KAKADU_SSH_KEY }}"
- run: git submodule update --init
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
- uses: swatinem/rust-cache@v2
with:
prefix-key: 'v0-rust-${{ matrix.build_configuration.target }}-${{ matrix.build_configuration.cpu }}'
- uses: dtolnay/rust-toolchain@v1
with:
toolchain: stable
targets: ${{ matrix.build_configuration.target }}
- uses: taiki-e/install-action@v2
with:
tool: nextest
- name: Run build
run: cargo nextest run --target ${{ matrix.build_configuration.target }} --release
env:
RUSTFLAGS: "-Ctarget-cpu=${{ matrix.build_configuration.cpu }}"
CARGO_TERM_COLOR: always