chore: Release epok version 0.10.6 #8
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 | |
on: | |
push: | |
branches: | |
- "main" | |
- "dev/test-yml" | |
permissions: | |
contents: read | |
jobs: | |
test: | |
name: test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install rust | |
shell: bash | |
run: | | |
rustup toolchain install stable --profile minimal | |
- uses: extractions/setup-just@v2 | |
- name: Cache sccache | |
id: cache_sccache | |
uses: actions/cache@v4 | |
with: | |
path: /home/runner/.cache/sccache | |
key: test-sccache-v0-${{ hashFiles('.cargo/config.toml') }} | |
restore-keys: | | |
test-sccache-v0-${{ hashFiles('.cargo/config.toml') }} | |
test-sccache-v0- | |
- name: Prep udeps + sccache | |
shell: bash | |
run: | | |
curl --fail --location "https://github.com/est31/cargo-udeps/releases/download/${CARGO_UDEPS_VERSION}/cargo-udeps-${CARGO_UDEPS_VERSION}-x86_64-unknown-linux-gnu.tar.gz" --output /tmp/cargo-udeps.tar.gz | |
tar --directory "/usr/local/bin" -xzvf "/tmp/cargo-udeps.tar.gz" --strip-components 2 --wildcards "*/cargo-udeps" | |
rm /tmp/cargo-udeps.tar.gz | |
curl --fail --location "https://github.com/mozilla/sccache/releases/download/${SCCACHE_VERSION}/sccache-${SCCACHE_VERSION}-x86_64-unknown-linux-musl.tar.gz" --output /tmp/sccache.tar.gz | |
tar --directory "/usr/local/bin" -xzvf "/tmp/sccache.tar.gz" --strip-components 1 --wildcards "*/sccache" | |
rm /tmp/sccache.tar.gz | |
sudo mkdir -p /home/runner/.cache/sccache | |
sudo chown -R $(id -u) /home/runner/.cache/sccache | |
sudo chmod -R u+rwX /home/runner/.cache/sccache | |
echo "RUSTC_WRAPPER=sccache" >> $GITHUB_ENV | |
echo "SCCACHE_DIR=/home/runner/.cache/sccache" >> $GITHUB_ENV | |
env: | |
CARGO_UDEPS_VERSION: "v0.1.50" | |
SCCACHE_VERSION: "v0.8.1" | |
- name: Run the CI tests | |
run: | | |
just ci | |
sccache -s |