Skip to content

Fix/fork chores

Fix/fork chores #13

Workflow file for this run

name: CI Test - targets
on:
- pull_request
jobs:
install_on_runner:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macOS-latest
- windows-latest
target:
- wasm32-unknown-unknown
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use myself
uses: ./
with:
toolchain: nightly
profile: minimal
override: true
targets: ${{ matrix.target }}
- name: Test ${{ matrix.target }} exists
run: |
test $(rustup target list | grep installed | grep -c ${{ matrix.target }}) -eq 1 || (echo "Target ${{ matrix.target }} is not installed" && exit 1)
install_in_docker:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- wasm32-unknown-unknown
# Docker image, not the GitHub Actions VM
container: ubuntu:latest
steps:
- name: Checkout
uses: actions/checkout@v4
# `rustup` will need `curl` or `wget` later
- name: Install packages
run: apt-get update && apt-get install -y curl
- name: Use myself
uses: ./
with:
toolchain: nightly
profile: minimal
override: true
targets: ${{ matrix.target }}
- name: Test ${{ matrix.target }} exists
run: |
test $(rustup target list | grep installed | grep -c ${{ matrix.target }}) -eq 1 || (echo "Target ${{ matrix.target }} is not installed" && exit 1)