Build: Windows #23
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: Windows" | |
on: | |
schedule: | |
# https://crontab.guru/#0_16_*_*_6 | |
- cron: "0 16 * * 6" # “At 16:00 on Saturday.” | |
workflow_dispatch: | |
# nothing | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
mode: ["debug", "release"] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Pull Docker image | |
run: docker pull ghcr.io/inet-framework/ci-inet:6.0.1-230503 | |
- run: mkdir /home/runner/work/ccache | |
- uses: actions/cache@v4 | |
with: | |
path: /home/runner/work/ccache | |
# See: https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache | |
key: cross-windows-${{ matrix.mode }}-ccache-${{ github.run_id }} | |
restore-keys: cross-windows-${{ matrix.mode }}-ccache | |
- name: Cross-building Windows binaries | |
run: | | |
docker run -i --env TARGET_PLATFORM=windows --env MODE=${{ matrix.mode }} --env GITHUB_WORKSPACE \ | |
-v $GITHUB_WORKSPACE:$GITHUB_WORKSPACE -v /home/runner/work/ccache:/root/.ccache \ | |
ghcr.io/inet-framework/ci-inet:6.0.1-230503 /bin/bash $GITHUB_WORKSPACE/_scripts/github/cross-build.sh |