-
Notifications
You must be signed in to change notification settings - Fork 29
54 lines (47 loc) · 1.38 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache dprint
uses: actions/cache@v4
with:
path: |
~/.dprint
~/.cache/dprint
key: dprint
- name: Install dprint
run: |
if [ ! -f $HOME/.dprint/bin/dprint ]; then
curl -fsSL https://dprint.dev/install.sh | sh
fi
echo $HOME/.dprint/bin >> $GITHUB_PATH
- run: ./misc/fmt.sh --check
build-x86-emu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Swatinem/rust-cache@v2
- name: Build
run: cargo build -F x86-emu -p retrowin32 --release
# TODO: web build needs wasm-bindgen-cli, but installing it is a bit annoying.
# Perhaps we should go back to wasm-pack for builds.
# build-web:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: Rust Setup
# run: rustup toolchain install stable --profile minimal --no-self-update --target wasm32-unknown-unknown
# - name: Wasm-pack Setup
# run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
# - uses: Swatinem/rust-cache@v2
# - name: Build
# run: make -C web profile=lto