Bump wasmtime from 18.0.2 to 20.0.2 in /native/wasmex #136
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: Elixir CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
ELIXIR_VERSION: 1.16.1 | |
OTP_VERSION: 26.2.1 | |
MIX_ENV: test | |
WASMEX_BUILD: true | |
jobs: | |
deps: | |
runs-on: ubuntu-latest | |
outputs: | |
deps-cache-key: ${{ steps.get-cache-key.outputs.key }} | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
override: true | |
default: true | |
- id: get-cache-key | |
run: echo "key=mix-${{ env.ELIXIR_VERSION }}-${{ env.OTP_VERSION }}-${{ hashFiles('**/mix.lock') }}" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v2 | |
id: cache-deps | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ steps.get-cache-key.outputs.key }} | |
- run: mix do deps.get, deps.compile | |
if: steps.cache-deps.outputs.cache-hit != 'true' | |
credo: | |
needs: deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- uses: actions/cache@v2 | |
id: cache-deps | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ needs.deps.outputs.deps-cache-key }} | |
- run: mix credo | |
format: | |
needs: deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- run: mix format --check-formatted | |
docs: | |
needs: deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- uses: actions/cache@v2 | |
id: cache-deps | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ needs.deps.outputs.deps-cache-key }} | |
- run: mix docs | |
test: | |
needs: deps | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: erlef/setup-beam@v1 | |
with: | |
otp-version: ${{ env.OTP_VERSION }} | |
elixir-version: ${{ env.ELIXIR_VERSION }} | |
- uses: actions/cache@v2 | |
id: cache-deps | |
with: | |
path: | | |
deps | |
_build | |
key: ${{ needs.deps.outputs.deps-cache-key }} | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
override: true | |
default: true | |
- name: Add targets | |
run: | | |
rustup target add wasm32-unknown-unknown | |
rustup target add wasm32-wasi | |
- uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: elixir-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- run: mix test |