-
Notifications
You must be signed in to change notification settings - Fork 35
65 lines (61 loc) · 1.86 KB
/
weekly-canary-build.yml
File metadata and controls
65 lines (61 loc) · 1.86 KB
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
name: Weekly Canary Build
env:
CARGO_TERM_COLOR: always # We want colors in our CI output
CARGO_INCREMENTAL: 0 # Don't waste time writing out incremental build files
CARGO_PROFILE_TEST_DEBUG: 0 # These are thrown away anyways, don't produce them
on:
schedule:
- cron: '45 1 * * Mon'
# Uncomment this temporarily if you are changing this workflow
# push:
# branches:
# - main
# tags:
# - "**"
# pull_request:
# branches:
# - main
jobs:
weekly-canary-build:
strategy:
fail-fast: false
matrix:
rust-channel: [stable, beta, nightly]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
cache: exercise-book
channel: ${{ matrix.rust-channel }}
- run: curl -sSL https://github.com/jonathanpallant/mdBook/releases/download/v0.5.2-current-page-active/mdbook -o ~/.cargo/bin/mdbook
- run: chmod a+x ~/.cargo/bin/mdbook
- name: Install mdbook-graphviz
uses: taiki-e/install-action@v2
with:
tool: mdbook-graphviz@0.3.1
- run: just test-mdbook
- run: just build-mdbook
- name: Upload mdbook artifacts
uses: actions/upload-artifact@v4
with:
name: mdbook-dir-${{ matrix.rust-channel }}
path: exercise-book/book/
if-no-files-found: error
build-nrf52-code:
strategy:
fail-fast: false
matrix:
rust-channel: [stable, beta, nightly]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- uses: ./.github/actions/setup
with:
channel: ${{ matrix.rust-channel }}
cache: nrf52-code
target: thumbv7em-none-eabihf
- uses: taiki-e/install-action@v2
with:
tool: flip-link@0.1.10
- run: just build-nrf52-code