tangled
alpha
login
or
join now
luckasranarison.bsky.social
/
boya
0
fork
atom
Hopefully a GameBoy Advance emulator...
luckasranarison.github.io/boya/
gameboy-advance
nintendo
rust
wasm
emulator
0
fork
atom
overview
issues
pulls
pipelines
fix: ci/cd
luckasRanarison
2 months ago
2e422bb5
a5e45b95
+25
-9
4 changed files
expand all
collapse all
unified
split
.github
workflows
ci.yml
deploy.yml
web
eslint.config.js
vite.config.ts
+4
.github/workflows/ci.yml
···
3
3
on:
4
4
push:
5
5
branches: ["master"]
6
6
+
paths:
7
7
+
- "crates/**"
6
8
pull_request:
7
9
branches: ["master"]
10
10
+
paths:
11
11
+
- "crates/**"
8
12
9
13
env:
10
14
CARGO_TERM_COLOR: always
+10
.github/workflows/deploy.yml
···
31
31
steps:
32
32
- name: Checkout
33
33
uses: actions/checkout@v4
34
34
+
34
35
- name: Set up Node
35
36
uses: actions/setup-node@v4
36
37
with:
37
38
node-version: 22
38
39
cache: "npm"
39
40
cache-dependency-path: "**/package-lock.json"
41
41
+
40
42
- name: Install wasm dependencies
41
43
run: cargo install wasm-bindgen-cli wasm-pack
44
44
+
42
45
- name: Install web dependencies
43
46
run: npm install
47
47
+
48
48
+
- name: Lint
49
49
+
run: npm run lint
50
50
+
44
51
- name: Build
45
52
run: npm run wasm:build && npm run build
53
53
+
46
54
- name: Setup Pages
47
55
uses: actions/configure-pages@v5
56
56
+
48
57
- name: Upload artifact
49
58
uses: actions/upload-pages-artifact@v3
50
59
with:
51
60
path: "web/dist"
61
61
+
52
62
- name: Deploy to GitHub Pages
53
63
id: deployment
54
64
uses: actions/deploy-pages@v4
+10
-9
web/eslint.config.js
···
1
1
-
import js from '@eslint/js'
2
2
-
import globals from 'globals'
3
3
-
import reactHooks from 'eslint-plugin-react-hooks'
4
4
-
import reactRefresh from 'eslint-plugin-react-refresh'
5
5
-
import tseslint from 'typescript-eslint'
6
6
-
import { defineConfig, globalIgnores } from 'eslint/config'
1
1
+
import js from "@eslint/js";
2
2
+
import globals from "globals";
3
3
+
import reactHooks from "eslint-plugin-react-hooks";
4
4
+
import reactRefresh from "eslint-plugin-react-refresh";
5
5
+
import tseslint from "typescript-eslint";
6
6
+
import { defineConfig, globalIgnores } from "eslint/config";
7
7
8
8
export default defineConfig([
9
9
-
globalIgnores(['dist']),
9
9
+
globalIgnores(["dist"]),
10
10
{
11
11
-
files: ['**/*.{ts,tsx}'],
11
11
+
files: ["**/*.{ts,tsx}"],
12
12
+
ignores: ["./pkg/**"],
12
13
extends: [
13
14
js.configs.recommended,
14
15
tseslint.configs.recommended,
···
20
21
globals: globals.browser,
21
22
},
22
23
},
23
23
-
])
24
24
+
]);
+1
web/vite.config.ts
···
12
12
"@": path.resolve(__dirname, "./src"),
13
13
},
14
14
},
15
15
+
base: "/boya",
15
16
});