Update to lastest emsdk #342
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish to gh-pages | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install Dependencies | |
run: sudo apt update && sudo apt install -y libgles-dev libgoogle-perftools-dev libsdl2-dev libunwind-dev | |
- name: Test Emulator | |
run: bazel test -c opt emulator/... | |
- name: Build | |
run: | | |
bazel build -c opt front_end/sdl2:webgba_wasm | |
- name: Prepare Output | |
run: | | |
cp bazel-bin/front_end/sdl2/webgba_wasm/webgba.data front_end/pwa/ | |
cp bazel-bin/front_end/sdl2/webgba_wasm/webgba.js front_end/pwa/ | |
cp bazel-bin/front_end/sdl2/webgba_wasm/webgba.wasm front_end/pwa/ | |
cp third_party/totushi/generated/favicon.ico front_end/pwa/ | |
cp third_party/totushi/magenta.png front_end/pwa/ | |
- name: Deploy | |
uses: peaceiris/actions-gh-pages@v3 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./front_end/pwa | |
cname: webgba.app |