Use ubuntu-latest runner for CI workflow instead of self-hosted

This commit is contained in:
rob thijssen
2025-09-17 00:01:48 +08:00
parent 84f2156c39
commit 2d8945ee34

View File

@@ -2,45 +2,45 @@
name: continuous integration
on:
pull_request:
push:
branches:
- main
pull_request:
push:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_TERM_COLOR: always
jobs:
quality-control:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
components: rustfmt, clippy
- name: install taplo
run: cargo install taplo-cli --locked
- name: taplo
run: taplo format --check --config taplo.toml
- name: format
run: cargo fmt --all -- --check
timeout-minutes: 5
- name: compile
run: cargo build --locked --workspace
timeout-minutes: 90
- name: clippy
run: cargo clippy --locked --workspace
timeout-minutes: 30
- name: test
run: cargo test --locked --workspace
timeout-minutes: 15
- name: doc
run: cargo doc --locked --workspace --no-deps
timeout-minutes: 15
quality-control:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ env.RUSTUP_TOOLCHAIN }}
components: rustfmt, clippy
- name: install taplo
run: cargo install taplo-cli --locked
- name: taplo
run: taplo format --check --config taplo.toml
- name: format
run: cargo fmt --all -- --check
timeout-minutes: 5
- name: compile
run: cargo build --locked --workspace
timeout-minutes: 90
- name: clippy
run: cargo clippy --locked --workspace
timeout-minutes: 30
- name: test
run: cargo test --locked --workspace
timeout-minutes: 15
- name: doc
run: cargo doc --locked --workspace --no-deps
timeout-minutes: 15