Skip to content

Commit

Permalink
Stop using umaintained actions from actions-rs
Browse files Browse the repository at this point in the history
The functionality should stay similar.

Note that GitHub does have some tools installed already (like rustfmt)
outside of rustup so it's a little unclear which versions cargo ends up
using... Again, situation should remain same as it was with actions-rs.

Signed-off-by: Jussi Kukkonen <jkukkonen@google.com>
  • Loading branch information
jku committed Oct 29, 2024
1 parent 176331e commit 05346f9
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 66 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/auto-publish-crates-upon-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ jobs:
publish-automatically:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
toolchain: stable
override: true
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Rustup
run: |
rustup install stable
rustup override set stable
- name: publish crates
run: cargo publish --token ${{ secrets.CARGO_API_TOKEN }}
15 changes: 6 additions & 9 deletions .github/workflows/conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,12 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: build
args: --manifest-path=tests/conformance/Cargo.toml
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
- run: |
cargo build --manifest-path=tests/conformance/Cargo.toml
- uses: sigstore/sigstore-conformance@main
with:
entrypoint: ${{ github.workspace }}/tests/conformance/target/debug/sigstore
89 changes: 37 additions & 52 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,56 +8,47 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: check
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
- run: |
cargo check
check-wasm:
name: Check WASM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
target: wasm32-unknown-unknown
override: true
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: check
args: --no-default-features --features wasm
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
rustup target add wasm32-unknown-unknown
- run: |
cargo check --no-default-features --features wasm
test:
name: Test Suite
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: test
args: --workspace --features full-native-tls,test-registry
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
- run: |
cargo test --workspace --features full-native-tls,test-registry
doc:
name: Build Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: nightly
override: true
- name: Rustup (nightly)
run: |
rustup install --profile minimal nightly
rustup override set nightly
- run: |
make doc
Expand All @@ -66,29 +57,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add rustfmt
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: fmt
args: --all -- --check
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
rustup component add rustfmt
- run: |
cargo fmt --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # v1.0.7
with:
profile: minimal
toolchain: stable
override: true
- run: rustup component add clippy
- uses: actions-rs/cargo@844f36862e911db73fe0815f00a4a2602c279505 # v1.0.3
with:
command: clippy
args: --workspace -- -D warnings
- name: Rustup
run: |
rustup install --profile minimal stable
rustup override set stable
rustup component add clippy
- run: |
cargo clippy --workspace -- -D warnings

0 comments on commit 05346f9

Please sign in to comment.