Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 30 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,42 +7,54 @@ on:

jobs:
build:
name: Build and Test
name: Build and Test (${{ matrix.memory }} pages)
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- memory: regular
one_byte_page: 0
- memory: one-byte
one_byte_page: 1
env:
WAC_VERSION: 0.9.0
VICEROY_VERSION: 0.16.4
WAC_VERSION: 0.12.0
VICEROY_VERSION: 0.21.1
steps:
- uses: actions/checkout@v5
- uses: dtolnay/rust-toolchain@stable
with:
target: wasm32-unknown-unknown, wasm32-wasip2
components: rustfmt, clippy
toolchain: 1.93.1 # Pin to 1.93 to use WASI 0.2.6, before viceroy catches up to 0.2.9
toolchain: 1.99.0
- uses: bytecodealliance/actions/wasmtime/setup@v1
- name: Install wac
run: |
tmp=$(mktemp -d)
curl -sLo "$tmp/wac-cli" https://github.com/bytecodealliance/wac/releases/download/v${{ env.WAC_VERSION }}/wac-cli-x86_64-unknown-linux-musl
chmod a+x "$tmp/wac-cli"
mv "$tmp/wac-cli" /usr/local/bin/wac
- name: Install viceroy
run: |
tmp=$(mktemp -d)
curl -sLo "$tmp/viceroy.tar.gz" https://github.com/fastly/Viceroy/releases/download/v${{ env.VICEROY_VERSION }}/viceroy_v${{ env.VICEROY_VERSION }}_linux-amd64.tar.gz
tar -xz -f "$tmp/viceroy.tar.gz" -C "$tmp"
chmod a+x "$tmp/viceroy"
mv "$tmp/viceroy" /usr/local/bin/
- uses: actions/cache@v5
with:
path: |
~/.cargo/registry
~/.cargo/git
~/.cargo/bin
~/.cargo/.crates.toml
~/.cargo/.crates2.json
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install wac
run: |
tmp=$(mktemp -d)
curl -sLo "$tmp/wac-cli" https://github.com/bytecodealliance/wac/releases/download/v${{ env.WAC_VERSION }}/wac-cli-x86_64-unknown-linux-musl
chmod a+x "$tmp/wac-cli"
mv "$tmp/wac-cli" /usr/local/bin/wac
- name: Install viceroy
run: |
RUSTFLAGS="--cap-lints=warn" cargo install --git https://github.com/fastly/Viceroy.git --branch yan/adapt-ps1 --locked viceroy
# tmp=$(mktemp -d)
# curl -sLo "$tmp/viceroy.tar.gz" https://github.com/fastly/Viceroy/releases/download/v${{ env.VICEROY_VERSION }}/viceroy_v${{ env.VICEROY_VERSION }}_linux-amd64.tar.gz
# tar -xz -f "$tmp/viceroy.tar.gz" -C "$tmp"
# chmod a+x "$tmp/viceroy"
# mv "$tmp/viceroy" /usr/local/bin/
- name: Build
run: make
- name: Test
run: make test
run: make test ONE_BYTE_PAGE=${{ matrix.one_byte_page }}
Loading
Loading