Reduce warnings on CI from GitHub Actions (#5083)
* Upgrade our github actions to "node16" Each github actions run has a lot of warnings about using node12 so this upgrades our repository to using node16. I'm hoping no other changes are needed and I suspect other actions we're using are on node12 and will need further updates, but this should help pin down what's remaining. * Update `actions/checkout` workflow to `v3` * Update to `actions/cache@v3` * Update to `actions/upload-artifact@v3` * Drop usage of `actions-rs/toolchain` * Update to `actions/setup-python@v4` * Update mdbook version
This commit is contained in:
@@ -2,7 +2,7 @@ name: 'Set up a CentOS 6 container to build releases in'
|
|||||||
description: 'Set up a CentOS 6 container to build releases in'
|
description: 'Set up a CentOS 6 container to build releases in'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node16
|
||||||
main: 'main.js'
|
main: 'main.js'
|
||||||
inputs:
|
inputs:
|
||||||
name:
|
name:
|
||||||
|
|||||||
2
.github/actions/github-release/action.yml
vendored
2
.github/actions/github-release/action.yml
vendored
@@ -8,5 +8,5 @@ inputs:
|
|||||||
description: ''
|
description: ''
|
||||||
required: true
|
required: true
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node16'
|
||||||
main: 'main.js'
|
main: 'main.js'
|
||||||
|
|||||||
2
.github/actions/install-rust/action.yml
vendored
2
.github/actions/install-rust/action.yml
vendored
@@ -8,5 +8,5 @@ inputs:
|
|||||||
default: 'stable'
|
default: 'stable'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: node12
|
using: node16
|
||||||
main: 'main.js'
|
main: 'main.js'
|
||||||
|
|||||||
2
.github/workflows/cargo-audit.yml
vendored
2
.github/workflows/cargo-audit.yml
vendored
@@ -6,7 +6,7 @@ jobs:
|
|||||||
security_audit:
|
security_audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: actions-rs/audit-check@v1
|
- uses: actions-rs/audit-check@v1
|
||||||
|
|||||||
40
.github/workflows/main.yml
vendored
40
.github/workflows/main.yml
vendored
@@ -21,7 +21,7 @@ jobs:
|
|||||||
name: Rustfmt
|
name: Rustfmt
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -34,7 +34,7 @@ jobs:
|
|||||||
name: Cargo deny
|
name: Cargo deny
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -52,11 +52,11 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CARGO_VET_VERSION: 0.3.0
|
CARGO_VET_VERSION: 0.3.0
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.tool_cache }}/cargo-vet
|
path: ${{ runner.tool_cache }}/cargo-vet
|
||||||
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
|
key: cargo-vet-bin-${{ env.CARGO_VET_VERSION }}
|
||||||
@@ -68,11 +68,11 @@ jobs:
|
|||||||
name: Doc build
|
name: Doc build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
CARGO_MDBOOK_VERSION: 0.4.8
|
CARGO_MDBOOK_VERSION: 0.4.21
|
||||||
RUSTDOCFLAGS: -Dbroken_intra_doc_links --cfg nightlydoc
|
RUSTDOCFLAGS: -Dbroken_intra_doc_links --cfg nightlydoc
|
||||||
OPENVINO_SKIP_LINKING: 1
|
OPENVINO_SKIP_LINKING: 1
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -86,7 +86,7 @@ jobs:
|
|||||||
- run: cd crates/c-api && doxygen doxygen.conf
|
- run: cd crates/c-api && doxygen doxygen.conf
|
||||||
|
|
||||||
# install mdbook, build the docs, and test the docs
|
# install mdbook, build the docs, and test the docs
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.tool_cache }}/mdbook
|
path: ${{ runner.tool_cache }}/mdbook
|
||||||
key: cargo-mdbook-bin-${{ env.CARGO_MDBOOK_VERSION }}
|
key: cargo-mdbook-bin-${{ env.CARGO_MDBOOK_VERSION }}
|
||||||
@@ -113,7 +113,7 @@ jobs:
|
|||||||
mv crates/c-api/html gh-pages/c-api
|
mv crates/c-api/html gh-pages/c-api
|
||||||
mv target/doc gh-pages/api
|
mv target/doc gh-pages/api
|
||||||
tar czf gh-pages.tar.gz gh-pages
|
tar czf gh-pages.tar.gz gh-pages
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: gh-pages
|
name: gh-pages
|
||||||
path: gh-pages.tar.gz
|
path: gh-pages.tar.gz
|
||||||
@@ -137,7 +137,7 @@ jobs:
|
|||||||
name: Check
|
name: Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -190,7 +190,7 @@ jobs:
|
|||||||
name: Check Windows ARM64
|
name: Check Windows ARM64
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -201,7 +201,7 @@ jobs:
|
|||||||
name: Fuzz Targets
|
name: Fuzz Targets
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
# Note that building with fuzzers requires nightly since it uses unstable
|
# Note that building with fuzzers requires nightly since it uses unstable
|
||||||
@@ -254,7 +254,7 @@ jobs:
|
|||||||
qemu: qemu-riscv64 -L /usr/riscv64-linux-gnu
|
qemu: qemu-riscv64 -L /usr/riscv64-linux-gnu
|
||||||
qemu_target: riscv64-linux-user
|
qemu_target: riscv64-linux-user
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -271,7 +271,7 @@ jobs:
|
|||||||
- run: cargo fetch --locked
|
- run: cargo fetch --locked
|
||||||
- run: cargo fetch --locked --manifest-path crates/test-programs/wasi-tests/Cargo.toml
|
- run: cargo fetch --locked --manifest-path crates/test-programs/wasi-tests/Cargo.toml
|
||||||
|
|
||||||
- uses: actions/cache@v2
|
- uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ runner.tool_cache }}/qemu
|
path: ${{ runner.tool_cache }}/qemu
|
||||||
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patchmadvise2
|
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patchmadvise2
|
||||||
@@ -347,7 +347,7 @@ jobs:
|
|||||||
name: Test wasi-nn module
|
name: Test wasi-nn module
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -362,7 +362,7 @@ jobs:
|
|||||||
name: Test wasi-crypto module
|
name: Test wasi-crypto module
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- run: rustup update stable && rustup default stable
|
- run: rustup update stable && rustup default stable
|
||||||
@@ -375,7 +375,7 @@ jobs:
|
|||||||
name: Run benchmarks
|
name: Run benchmarks
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -387,7 +387,7 @@ jobs:
|
|||||||
name: Meta deterministic check
|
name: Meta deterministic check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -425,7 +425,7 @@ jobs:
|
|||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
target: riscv64gc-unknown-linux-gnu
|
target: riscv64gc-unknown-linux-gnu
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: ./.github/actions/install-rust
|
- uses: ./.github/actions/install-rust
|
||||||
@@ -450,7 +450,7 @@ jobs:
|
|||||||
# Assemble release artifats appropriate for this platform, then upload them
|
# Assemble release artifats appropriate for this platform, then upload them
|
||||||
# unconditionally to this workflow's files so we have a copy of them.
|
# unconditionally to this workflow's files so we have a copy of them.
|
||||||
- run: ./ci/build-tarballs.sh "${{ matrix.build }}" "${{ matrix.target }}"
|
- run: ./ci/build-tarballs.sh "${{ matrix.build }}" "${{ matrix.target }}"
|
||||||
- uses: actions/upload-artifact@v1
|
- uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: bins-${{ matrix.build }}
|
name: bins-${{ matrix.build }}
|
||||||
path: dist
|
path: dist
|
||||||
@@ -472,7 +472,7 @@ jobs:
|
|||||||
if: github.repository == 'bytecodealliance/wasmtime'
|
if: github.repository == 'bytecodealliance/wasmtime'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- run: rustup update stable && rustup default stable
|
- run: rustup update stable && rustup default stable
|
||||||
|
|||||||
8
.github/workflows/performance.yml
vendored
8
.github/workflows/performance.yml
vendored
@@ -77,11 +77,7 @@ jobs:
|
|||||||
submodules: true
|
submodules: true
|
||||||
path: wasmtime_commit
|
path: wasmtime_commit
|
||||||
|
|
||||||
- name: Get latest rust toolchain
|
- run: rustup update nightly && rustup default nightly
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
toolchain: nightly
|
|
||||||
override: true
|
|
||||||
|
|
||||||
- name: Build patch from bytecodealliance/wasmtime (pushed and triggering on this perf repo)
|
- name: Build patch from bytecodealliance/wasmtime (pushed and triggering on this perf repo)
|
||||||
working-directory: ./wasmtime_commit
|
working-directory: ./wasmtime_commit
|
||||||
@@ -120,7 +116,7 @@ jobs:
|
|||||||
./target/release/sightglass-cli summarize --input-format csv --output-format csv -f /tmp/results.csv > /tmp/results_summarized.csv
|
./target/release/sightglass-cli summarize --input-format csv --output-format csv -f /tmp/results.csv > /tmp/results_summarized.csv
|
||||||
|
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v4
|
||||||
with:
|
with:
|
||||||
python-version: '3.9'
|
python-version: '3.9'
|
||||||
|
|
||||||
|
|||||||
2
.github/workflows/publish-to-cratesio.yml
vendored
2
.github/workflows/publish-to-cratesio.yml
vendored
@@ -14,7 +14,7 @@ jobs:
|
|||||||
if: github.repository == 'bytecodealliance/wasmtime'
|
if: github.repository == 'bytecodealliance/wasmtime'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- run: rustup update stable && rustup default stable
|
- run: rustup update stable && rustup default stable
|
||||||
|
|||||||
2
.github/workflows/push-tag.yml
vendored
2
.github/workflows/push-tag.yml
vendored
@@ -17,7 +17,7 @@ jobs:
|
|||||||
if: github.repository == 'bytecodealliance/wasmtime'
|
if: github.repository == 'bytecodealliance/wasmtime'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|||||||
2
.github/workflows/release-process.yml
vendored
2
.github/workflows/release-process.yml
vendored
@@ -38,7 +38,7 @@ jobs:
|
|||||||
name: Run the release process
|
name: Run the release process
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
- name: Setup
|
- name: Setup
|
||||||
|
|||||||
Reference in New Issue
Block a user