switch to translate-c for SDL2 to avoid use of usingnamespace #60
Workflow file for this run
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: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| concurrency: | |
| # Cancels pending runs when a PR gets updated. | |
| group: ${{ github.head_ref || github.run_id }}-${{ github.actor }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| name: Build | |
| strategy: | |
| matrix: | |
| include: | |
| - os: "ubuntu-22.04" | |
| - os: "windows-latest" | |
| - os: "macos-14" # arm64 as per table: https://github.com/actions/runner-images/blob/8a1eeaf6ac70c66f675a04078d1a7222edd42008/README.md#available-images | |
| runs-on: ${{matrix.os}} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v3 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| with: | |
| packages: 'tools platform-tools platforms;android-35 build-tools;35.0.0 ndk;29.0.13113456' | |
| - name: Setup Zig Stable (0.14.0) | |
| # note(jae): 2024-09-15 | |
| # Uses download mirror first as preferred by Zig Foundation | |
| # see: https://ziglang.org/news/migrate-to-self-hosting/ | |
| uses: mlugg/setup-zig@v1 | |
| with: | |
| version: "0.14.0" | |
| - name: Build Minimal Example (Zig Stable) | |
| run: zig build -Dandroid=true --verbose | |
| working-directory: examples/minimal | |
| - name: Build SDL2 Example (Zig Stable) | |
| run: zig build -Dandroid=true --verbose | |
| working-directory: examples/sdl2 | |
| - name: Setup Zig Nightly | |
| uses: mlugg/setup-zig@v1 | |
| with: | |
| version: "master" | |
| - name: Build Minimal Example (Zig Nightly) | |
| run: zig build -Dandroid=true --verbose | |
| working-directory: examples/minimal | |
| - name: Build SDL2 Example (Zig Nightly) | |
| run: zig build -Dandroid=true --verbose | |
| working-directory: examples/sdl2 |