Skip to content

Commit

Permalink
Merge pull request #40 from hapsoc/github-hosted-runners
Browse files Browse the repository at this point in the history
Move to GitHub-hosted runners
  • Loading branch information
fasterthanlime authored Dec 6, 2023
2 parents b61a868 + 24b139f commit f8fa66e
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 16 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/release-plz.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,24 @@
name: Release-plz
name: release-plz

permissions:
pull-requests: write
contents: write

on:
push:
branches:
- main
branches: ["main"]

jobs:
release-plz:
name: Release-plz
name: release-plz
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Run release-plz
uses: MarcoIeni/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
27 changes: 19 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,36 @@ name: test

on:
push:
branches:
- main
branches: ["main"]
pull_request:
merge_group:

jobs:
test:
name: test
runs-on: ubuntu-latest
env:
RUSTC_WRAPPER: sccache
CARGO_INCREMENTAL: 0
CARGO_HOME: /vol/cargo
runs-on: self-hosted
SCCACHE_GHA_ENABLED: true
steps:
- name: Check out repository code
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up sccache (part 1)
uses: mozilla-actions/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up sccache (part 2)
run: sccache --start-server
- uses: taiki-e/install-action@v2
with:
tool: just,cargo-llvm-cov,cargo-nextest
- name: Run tests
run: |
cd ${{ github.workspace }}
sccache --zero-stats
cargo clippy
just ci-test
sccache --show-stats
- name: Upload coverage information
run: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
./codecov -t ${CODECOV_TOKEN}
1 change: 0 additions & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ _default:
ci-test:
#!/bin/bash -eux
cargo llvm-cov nextest --lcov --output-path coverage.lcov
codecov

# Show coverage locally
cov:
Expand Down

0 comments on commit f8fa66e

Please sign in to comment.