Skip to content

Commit

Permalink
Merge pull request bytecodealliance#50 from dhil/weekly-merge
Browse files Browse the repository at this point in the history
Weekly merge
  • Loading branch information
dhil authored Jul 15, 2023
2 parents 48248ee + e5ad4f8 commit 8516a0c
Show file tree
Hide file tree
Showing 174 changed files with 5,976 additions and 1,342 deletions.
20 changes: 20 additions & 0 deletions .github/actions/install-cargo-vet/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: 'Install the `cargo-vet` tool'
description: 'Runs `cargo install cargo-vet`'

inputs:
version:
description: 'Version to install'
required: false
default: '0.8.0'

runs:
using: composite
steps:
- uses: actions/cache@v3
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ inputs.version }}
- run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
shell: bash
- run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ inputs.version }} cargo-vet
shell: bash
2 changes: 1 addition & 1 deletion .github/actions/install-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ inputs:
toolchain:
description: 'Default toolchan to install'
required: false
default: '1.69.0'
default: '1.71.0'
lockfiles:
description: 'Path glob for Cargo.lock files to use as cache keys'
required: false
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,19 +86,12 @@ jobs:
needs: determine
if: needs.determine.outputs.audit
runs-on: ubuntu-latest
env:
CARGO_VET_VERSION: 0.8.0
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: ./.github/actions/install-rust
- uses: actions/cache@v3
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
- run: echo "${{ runner.tool_cache }}/cargo-vet/bin" >> $GITHUB_PATH
- run: cargo install --root ${{ runner.tool_cache }}/cargo-vet --version ${{ env.CARGO_VET_VERSION }} cargo-vet
- uses: ./.github/actions/install-cargo-vet
- run: cargo vet --locked

# common logic to cancel the entire run if this job fails
Expand Down Expand Up @@ -194,7 +187,7 @@ jobs:
submodules: true
- uses: ./.github/actions/install-rust
with:
toolchain: nightly-2023-03-20
toolchain: nightly-2023-07-02

# Build C API documentation
- run: curl -L https://sourceforge.net/projects/doxygen/files/rel-1.9.3/doxygen-1.9.3.linux.bin.tar.gz/download | tar xzf -
Expand Down Expand Up @@ -353,7 +346,7 @@ jobs:
# flags to rustc.
- uses: ./.github/actions/install-rust
with:
toolchain: nightly-2023-03-20
toolchain: nightly-2023-07-02
- run: cargo install cargo-fuzz --vers "^0.11"
# Install the OCaml packages necessary for fuzz targets that use the
# `wasm-spec-interpreter`.
Expand Down Expand Up @@ -651,7 +644,7 @@ jobs:
submodules: true
- uses: ./.github/actions/install-rust
with:
toolchain: nightly-2023-03-20
toolchain: nightly-2023-07-02
- run: rustup component add rust-src miri
- uses: actions/cache@v3
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/release-process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
git config user.email 'wasmtime-publish@users.noreply.github.com'
git remote set-url origin https://git:${{ secrets.PERSONAL_ACCESS_TOKEN }}@github.com/${{ github.repository }}
- uses: ./.github/actions/install-rust
- uses: ./.github/actions/install-cargo-vet

- name: Bump major version number
run: |
set -ex
Expand All @@ -66,6 +69,9 @@ jobs:
cat backup-releases >> RELEASES.md
rm backup-releases
# Update `cargo vet` entries for all the new crate versions
cargo vet
# Commit all of the above changes.
git commit -am "Bump Wasmtime to $num"
Expand Down
Loading

0 comments on commit 8516a0c

Please sign in to comment.