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
on:
4
push:
5
branches: ["master"]
0
0
6
pull_request:
7
branches: ["master"]
0
0
8
9
env:
10
CARGO_TERM_COLOR: always
···
3
on:
4
push:
5
branches: ["master"]
6
+
paths:
7
+
- "crates/**"
8
pull_request:
9
branches: ["master"]
10
+
paths:
11
+
- "crates/**"
12
13
env:
14
CARGO_TERM_COLOR: always
+10
.github/workflows/deploy.yml
···
31
steps:
32
- name: Checkout
33
uses: actions/checkout@v4
0
34
- name: Set up Node
35
uses: actions/setup-node@v4
36
with:
37
node-version: 22
38
cache: "npm"
39
cache-dependency-path: "**/package-lock.json"
0
40
- name: Install wasm dependencies
41
run: cargo install wasm-bindgen-cli wasm-pack
0
42
- name: Install web dependencies
43
run: npm install
0
0
0
0
44
- name: Build
45
run: npm run wasm:build && npm run build
0
46
- name: Setup Pages
47
uses: actions/configure-pages@v5
0
48
- name: Upload artifact
49
uses: actions/upload-pages-artifact@v3
50
with:
51
path: "web/dist"
0
52
- name: Deploy to GitHub Pages
53
id: deployment
54
uses: actions/deploy-pages@v4
···
31
steps:
32
- name: Checkout
33
uses: actions/checkout@v4
34
+
35
- name: Set up Node
36
uses: actions/setup-node@v4
37
with:
38
node-version: 22
39
cache: "npm"
40
cache-dependency-path: "**/package-lock.json"
41
+
42
- name: Install wasm dependencies
43
run: cargo install wasm-bindgen-cli wasm-pack
44
+
45
- name: Install web dependencies
46
run: npm install
47
+
48
+
- name: Lint
49
+
run: npm run lint
50
+
51
- name: Build
52
run: npm run wasm:build && npm run build
53
+
54
- name: Setup Pages
55
uses: actions/configure-pages@v5
56
+
57
- name: Upload artifact
58
uses: actions/upload-pages-artifact@v3
59
with:
60
path: "web/dist"
61
+
62
- name: Deploy to GitHub Pages
63
id: deployment
64
uses: actions/deploy-pages@v4
+10
-9
web/eslint.config.js
···
1
-
import js from '@eslint/js'
2
-
import globals from 'globals'
3
-
import reactHooks from 'eslint-plugin-react-hooks'
4
-
import reactRefresh from 'eslint-plugin-react-refresh'
5
-
import tseslint from 'typescript-eslint'
6
-
import { defineConfig, globalIgnores } from 'eslint/config'
7
8
export default defineConfig([
9
-
globalIgnores(['dist']),
10
{
11
-
files: ['**/*.{ts,tsx}'],
0
12
extends: [
13
js.configs.recommended,
14
tseslint.configs.recommended,
···
20
globals: globals.browser,
21
},
22
},
23
-
])
···
1
+
import js from "@eslint/js";
2
+
import globals from "globals";
3
+
import reactHooks from "eslint-plugin-react-hooks";
4
+
import reactRefresh from "eslint-plugin-react-refresh";
5
+
import tseslint from "typescript-eslint";
6
+
import { defineConfig, globalIgnores } from "eslint/config";
7
8
export default defineConfig([
9
+
globalIgnores(["dist"]),
10
{
11
+
files: ["**/*.{ts,tsx}"],
12
+
ignores: ["./pkg/**"],
13
extends: [
14
js.configs.recommended,
15
tseslint.configs.recommended,
···
21
globals: globals.browser,
22
},
23
},
24
+
]);
+1
web/vite.config.ts
···
12
"@": path.resolve(__dirname, "./src"),
13
},
14
},
0
15
});
···
12
"@": path.resolve(__dirname, "./src"),
13
},
14
},
15
+
base: "/boya",
16
});