local OCI registry #55
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and test WebAssembly components | |
on: | |
push: | |
branches: | |
- "main" | |
paths: | |
- "wasm-components/**" | |
pull_request: | |
branches: | |
- "main" | |
paths: | |
- "wasm-components/**" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
name: Build and test | |
runs-on: ubuntu-latest | |
if: | | |
${{ github.event_name != 'pull_request' || | |
github.event.pull_request.head.repo.full_name != | |
github.event.pull_request.base.repo.full_name }} | |
defaults: | |
run: | |
working-directory: wasm-components | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- name: Install fish | |
run: | | |
sudo apt-add-repository ppa:fish-shell/release-3 | |
sudo apt update | |
sudo apt install fish | |
- name: Install Rust | |
uses: dtolnay/[email protected] | |
with: | |
targets: wasm32-wasip1,wasm32-wasip2 | |
components: rustfmt | |
- name: Install wash | |
run: | | |
curl -s https://packagecloud.io/install/repositories/wasmcloud/core/script.deb.sh | sudo bash | |
sudo apt install wash | |
- name: Check | |
shell: bash | |
working-directory: wasm-components | |
run: | | |
cargo fmt --all --check | |
- name: Build | |
shell: bash | |
working-directory: platform-wasmcloud | |
run: | | |
./build.fish | |
# - name: Install nextest | |
# shell: bash | |
# run: | | |
# set -euxo pipefail | |
# curl -LsSf https://get.nexte.st/0.9/linux | tar zxf - -C ${CARGO_HOME:-~/.cargo}/bin | |
# - name: Run tests | |
# shell: bash | |
# working-directory: wasm-components | |
# run: | | |
# rm .cargo/config.toml # so we don't attempt to execute wasm directly | |
# cargo nextest run --all-features |