Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…nto pollable
  • Loading branch information
badeend committed Feb 1, 2024
2 parents bd67f42 + b6a8abc commit 3692f9d
Show file tree
Hide file tree
Showing 216 changed files with 3,666 additions and 4,054 deletions.
2 changes: 1 addition & 1 deletion .github/actions/binary-compatible-builds/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'

runs:
using: node16
using: node20
main: 'main.js'
inputs:
name:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/install-cargo-vet/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ inputs:
runs:
using: composite
steps:
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-vet
key: cargo-vet-bin-${{ inputs.version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/install-rust/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ runs:
run: echo CARGO_REGISTRY_CACHE_KEY=$(date +%Y%m%d) >> $GITHUB_ENV

- name: Cache Cargo registry index
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.cargo/registry/index/
key: cargo-registry-${{ env.CARGO_REGISTRY_CACHE_KEY }}
Expand All @@ -90,7 +90,7 @@ runs:
restore-keys: cargo-registry-

- name: Cache crate sources for dependencies
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry/cache/
Expand Down
42 changes: 34 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ jobs:
- run: cd crates/c-api && doxygen doxygen.conf

# install mdbook, build the docs, and test the docs
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/mdbook
key: cargo-mdbook-bin-${{ env.CARGO_MDBOOK_VERSION }}
Expand Down Expand Up @@ -247,7 +247,7 @@ jobs:
mv crates/c-api/html gh-pages/c-api
mv target/doc gh-pages/api
tar czf gh-pages.tar.gz gh-pages
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: gh-pages
path: gh-pages.tar.gz
Expand Down Expand Up @@ -322,9 +322,14 @@ jobs:

# Check whether `wasmtime` cross-compiles to aarch64-linux-android
- run: rustup target add aarch64-linux-android
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
- name: Setup Android SDK
uses: android-actions/setup-android@v2
- uses: actions/cache@v3
uses: android-actions/setup-android@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-ndk
key: cargo-ndk-bin-${{ env.CARGO_NDK_VERSION }}
Expand Down Expand Up @@ -439,7 +444,7 @@ jobs:

- run: cargo fetch --locked

- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/qemu
key: qemu-${{ matrix.target }}-${{ env.QEMU_BUILD_VERSION }}-patchcpuinfo
Expand Down Expand Up @@ -557,7 +562,7 @@ jobs:
env:
VERSION: ${{ github.sha }}

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: bins-wasi-preview1-component-adapter
path: target/wasm32-unknown-unknown/release/wasi_snapshot_preview1.*.wasm
Expand All @@ -570,6 +575,27 @@ jobs:
GH_TOKEN: ${{ github.token }}


build-wasmtime-target-wasm32:
name: Build wasmtime-target-wasm32
needs: determine
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- run: rustup update stable && rustup default stable
- run: rustup target add wasm32-wasi wasm32-unknown-unknown
- run: cargo build -p wasmtime --target wasm32-wasi --no-default-features --features cranelift,all-arch
env:
VERSION: ${{ github.sha }}

# common logic to cancel the entire run if this job fails
- run: gh run cancel ${{ github.run_id }}
if: failure() && github.event_name != 'pull_request'
env:
GH_TOKEN: ${{ github.token }}


bench:
needs: determine
if: needs.determine.outputs.run-full
Expand Down Expand Up @@ -659,7 +685,7 @@ jobs:
with:
toolchain: nightly-2023-10-10
- run: rustup component add rust-src miri
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/cargo-nextest
key: cargo-nextest-bin-${{ env.CARGO_NEXTEST_VERSION }}
Expand Down Expand Up @@ -719,7 +745,7 @@ jobs:
# unconditionally to this workflow's files so we have a copy of them.
- run: ./ci/build-tarballs.sh "${{ matrix.build }}" "${{ matrix.target }}"

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: bins-${{ matrix.build }}
path: dist
Expand Down
Loading

0 comments on commit 3692f9d

Please sign in to comment.