dev (#57) #527
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: Build | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| wasm: | |
| name: Wasm | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| submodules: recursive | |
| - name: Build | |
| run: make wasm | |
| build: | |
| name: Build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [ | |
| { os: macos, runner: macos-latest, }, | |
| { os: windows , runner: windows-latest }, | |
| { os: ios, runner: mac }, | |
| # { os: android, runner: ubuntu-latest }, | |
| ] | |
| runs-on: ${{ matrix.target.runner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| submodules: recursive | |
| - name: Free Space | |
| if: ${{ matrix.target.os != 'windows' }} | |
| run: ./build/scripts/free_action_runner.sh | |
| - name: Build | |
| if: ${{ matrix.target.os != 'windows' }} | |
| run: ./build/build.sh ${{ matrix.target.os }} | |
| - name: Build windows | |
| if: ${{ matrix.target.os == 'windows' }} | |
| run: py build/build.py | |
| - name: Test | |
| if: ${{ matrix.target.os != 'ios' && matrix.target.os != 'android' }} | |
| run: make test | |
| linux: | |
| name: Build Linux | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [ | |
| { container: "ubuntu" }, | |
| { container: "debian" }, | |
| { container: "fedora" }, | |
| { container: "archlinux" }, | |
| { container: "amazonlinux" }, | |
| { container: "dockerscripts/linuxmint:cinnamon-minimal" }, | |
| ] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| token: ${{secrets.GITHUB_TOKEN}} | |
| submodules: recursive | |
| - name: Free Space | |
| run: ./build/scripts/free_action_runner.sh | |
| - name: Build | |
| run: echo ${{ matrix.target.container }} && ./build/in_docker.sh ${{ matrix.target.container }} |