Repository: bearcove/loona (language: rust)

Issue:
Move to GitHub-hosted actions runners
cf. https://github.com/hapsoc/hapsoc-ci/issues/3


Discussion / hints:

Fix patch:
diff --git a/rust-toolchain.toml b/rust-toolchain.toml
index c1e9523d..4d342538 100644
--- a/rust-toolchain.toml
+++ b/rust-toolchain.toml
@@ -1,3 +1,3 @@
 [toolchain]
 channel = "nightly-2023-10-18"
-components = ["llvm-tools"]
+components = ["llvm-tools", "clippy"]


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 8f75cb4e..dda97bad 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -50,18 +50,32 @@ jobs:
     env:
       CARGO_TERM_COLOR: always
       CARGO_INCREMENTAL: 0
+      SCCACHE_GHA_ENABLED: "true"
       RUSTC_WRAPPER: sccache
-      CARGO_HOME: /vol/cargo
-    runs-on: self-hosted
+    runs-on: ubuntu-latest
     steps:
       - name: Check out repository code
         uses: actions/checkout@v4
         with:
           fetch-depth: 2
+      - id: cache-rustup
+        name: Cache Rust toolchain
+        uses: actions/cache@v3
+        with:
+          path: ~/.rustup
+          key: toolchain-
+      - name: Install Rust specified toolchain
+        run: rustup show
+      - name: Run sccache-cache
+        uses: mozilla-actions/sccache-action@v0.0.3
+      - 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 unit tests and h2spec
         run: |
           cd ${{ github.workspace }}
-          sccache --zero-stats
           cargo clippy
           cargo clippy --manifest-path test-crates/fluke-tls-sample/Cargo.toml
           mkdir tools
@@ -72,14 +86,11 @@ jobs:
           (pushd tools && curl -fL https://github.com/hapsoc/h2spec-binaries/releases/download/72a6b9b/h2spec -o h2spec && chmod +x h2spec && popd)
           just ci-test
           sccache --show-stats
-      - name: Report coverage (zgosalvez/github-actions-report-lcov)
-        uses: zgosalvez/github-actions-report-lcov@v3
-        with:
-          coverage-files: coverage/lcov.info
-          minimum-coverage: 70
-          artifact-name: code-coverage-report
-          github-token: ${{ secrets.GITHUB_TOKEN }}
-          working-directory: .
+      - name: Upload coverage information
+        run: |
+          curl -Os https://uploader.codecov.io/latest/linux/codecov 
+          chmod +x codecov
+          ./codecov
       - name: Upload h2spec Report
         uses: actions/upload-artifact@v3
         if: always() # always run even if the previous step fails