Fix warning: linker flag ignored during compilation #189
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: Build and deploy | |
on: [push] | |
jobs: | |
build-deploy: | |
runs-on: ubuntu-latest | |
name: Publish emscripten build | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Find and define GITHUB_REF_SLUG | |
uses: rlespinasse/[email protected] | |
- name: Cache | |
uses: actions/cache@v2 | |
with: | |
# use branch name for cache invalidation (Linux-build-name-of-branch) | |
key: ${{ runner.os }}-build-${{ env.GITHUB_REF_SLUG }} | |
path: | | |
~/.cache/emsdk | |
- name: Build | |
run: | | |
docker run --rm \ | |
-v /home/runner/work/nbgf/nbgf:/github/workspace \ | |
--workdir /github/workspace \ | |
-v ~/.cache/emsdk:/emsdk/upstream/emscripten/cache/ \ | |
emscripten/emsdk emmake make -j2 OPTIM=2 DEBUG=0 | |
- name: FrontPage 2000 | |
run: | | |
mkdir -p www | |
cp bin/{gaem.data,gaem.wasm,gaem.js,index.html} www | |
echo "https://albertvaka.github.io/nbgf/${{ env.GITHUB_REF_SLUG }}" >> www/README.md | |
- name: Deploy | |
uses: JamesIves/[email protected] | |
with: | |
repository-name: albertvaka/albertvaka.github.io | |
ssh-key: ${{ secrets.DEPLOY_KEY }} | |
branch: main | |
folder: www | |
target-folder: nbgf/${{ env.GITHUB_REF_SLUG }} |