-
Notifications
You must be signed in to change notification settings - Fork 2
55 lines (50 loc) · 1.49 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: CI
on:
push:
branches:
- '**'
jobs:
test-rust:
strategy:
matrix:
os: [ubuntu, macos, windows]
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
- run: sudo apt-get update && sudo apt-get install libasound2-dev libudev-dev
if: matrix.os == 'ubuntu'
- run: make
build-webassembly:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
targets: wasm32-unknown-unknown
- uses: Homebrew/actions/setup-homebrew@master
- name: Install wasm-opt
run: brew update && brew install binaryen
- run: make wasm
- run: cd examples/gamepads-wasm-direct && make
- run: cargo install wasm-bindgen-cli
- run: cd examples/gamepads-wasm-bindgen && make
check-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: npm install uglify-js -g
- run: make check-js
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download actionlint
id: get_actionlint
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
- name: Check workflow files
run: ${{ steps.get_actionlint.outputs.executable }} -color