-
Notifications
You must be signed in to change notification settings - Fork 23
55 lines (51 loc) · 1.53 KB
/
install_tests.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Test installation
on:
schedule:
- cron: "30 23 * * *" # before nightly builds
jobs:
test_linux:
runs-on: ${{ matrix.os }}
timeout-minutes: 25
strategy:
max-parallel: 4
matrix:
os: [ubuntu-latest]
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v4
- name: Install musl-tools
run: "sudo apt-get install musl-tools"
- name: Systemd version
run: "systemd --version"
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
with:
components: "cargo,rustc,rust-std"
toolchain: "stable"
targets: "x86_64-unknown-linux-musl"
- run: |
cargo build --target=x86_64-unknown-linux-musl \
--features github_action_install --test github-actions
- run: |
cargo test --features github_action_install --test github-actions
test_other:
runs-on: ${{ matrix.os }}
timeout-minutes: 25
strategy:
max-parallel: 4
matrix:
os: [windows-2019, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@d0e72ca3bfdc51937a4f81431ccbed269ef9f2a2
with:
components: "cargo,rustc,rust-std"
toolchain: "stable"
- run: |
cargo build --features github_action_install --tests
- run: |
cargo test --features github_action_install -- github_action