Typing Rules (#6) #40
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| jobs: | |
| # Build job | |
| build: | |
| runs-on: ubuntu-latest | |
| container: ghcr.io/wildarch/graphalg-ci | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Build codemirror-lang-graphalg | |
| shell: bash | |
| run: | | |
| source /root/emsdk/emsdk_env.sh | |
| npm --workspace=codemirror-lang-graphalg install | |
| npm --workspace=codemirror-lang-graphalg run prepare | |
| - name: Build compiler | |
| shell: bash | |
| run: | | |
| ./compiler/configure.sh | |
| cmake --build ./compiler/build | |
| cmake --build ./compiler/build --target check | |
| - name: Build playground | |
| shell: bash | |
| run: | | |
| source /root/emsdk/emsdk_env.sh | |
| playground/cpp/configure-wasm.sh | |
| cmake --build playground/cpp/build-wasm --target graphalg-playground | |
| npm --workspace=playground install | |
| npm --workspace=playground run prepare | |
| - name: Build website | |
| env: | |
| GEM_HOME: /root/gems | |
| run: | | |
| /root/gems/bin/bundle install | |
| /root/gems/bin/bundle exec jekyll build |