Test installation #2223
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |