-
Notifications
You must be signed in to change notification settings - Fork 482
32 lines (30 loc) · 1.17 KB
/
build-windows.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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