release: 1.0.0 #68
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: Lint and Test | |
on: | |
push: | |
branches: | |
- main | |
paths-ignore: | |
- 'README.md' | |
- '.gitignore' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- '.gitignore' | |
jobs: | |
lint: | |
name: lint | |
strategy: | |
matrix: | |
toolchain: [stable] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Cache toolchain | |
uses: Swatinem/rust-cache@v1 | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
components: rustfmt, clippy | |
- name: Check build | |
run: | | |
make check | |
- name: Lint | |
run: | | |
make lint | |
test: | |
name: test | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- windows-latest | |
- macos-latest | |
- ubuntu-latest | |
toolchain: [stable] | |
deno_version: [v1.x] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Install dependencies | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt update | |
sudo apt install expat | |
sudo apt install libxml2-dev | |
sudo apt install pkg-config libasound2-dev libssl-dev cmake libfreetype6-dev libexpat1-dev libxcb-composite0-dev | |
- uses: actions/checkout@v2 | |
- name: Cache toolchain | |
uses: Swatinem/rust-cache@v1 | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
override: true | |
- uses: denoland/setup-deno@v1 | |
with: | |
deno-version: ${{ matrix.deno_version }} | |
- name: Install deno_bindgen | |
run: | | |
deno install -Afq -n deno_bindgen https://deno.land/x/deno_bindgen/cli.ts | |
- name: Test | |
run: | | |
make test |