Hopefully a GameBoy Advance emulator... luckasranarison.github.io/boya/
gameboy-advance nintendo rust wasm emulator

fix: ci/cd

+25 -9
+4
.github/workflows/ci.yml
··· 3 3 on: 4 4 push: 5 5 branches: ["master"] 6 + paths: 7 + - "crates/**" 6 8 pull_request: 7 9 branches: ["master"] 10 + paths: 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 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 + 40 42 - name: Install wasm dependencies 41 43 run: cargo install wasm-bindgen-cli wasm-pack 44 + 42 45 - name: Install web dependencies 43 46 run: npm install 47 + 48 + - name: Lint 49 + run: npm run lint 50 + 44 51 - name: Build 45 52 run: npm run wasm:build && npm run build 53 + 46 54 - name: Setup Pages 47 55 uses: actions/configure-pages@v5 56 + 48 57 - name: Upload artifact 49 58 uses: actions/upload-pages-artifact@v3 50 59 with: 51 60 path: "web/dist" 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 - 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' 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 7 8 8 export default defineConfig([ 9 - globalIgnores(['dist']), 9 + globalIgnores(["dist"]), 10 10 { 11 - files: ['**/*.{ts,tsx}'], 11 + files: ["**/*.{ts,tsx}"], 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 - ]) 24 + ]);
+1
web/vite.config.ts
··· 12 12 "@": path.resolve(__dirname, "./src"), 13 13 }, 14 14 }, 15 + base: "/boya", 15 16 });