Setup CI to build Windows image #7
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: [push, pull_request] | |
| env: | |
| REGISTRY: "ghcr.io" | |
| IMAGE: "ghcr.io/librepcb/librepcb-dev" | |
| jobs: | |
| windows-x64: | |
| name: Windows x86_64 | |
| runs-on: windows-2025 | |
| env: | |
| TAG: "windowsservercore-ltsc2025-qt6.6-64bit" | |
| permissions: | |
| contents: read | |
| packages: write | |
| attestations: write | |
| id-token: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Docker Login | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${{ env.REGISTRY }}" -u "${{ github.actor }}" --password-stdin | |
| # First we pull the image to get it as a cache, which massively speeds up | |
| # the image build time (basically a no-op if the Dockerfile was not | |
| # modified). This step is allowed to fail, e.g. if the image doesn't | |
| # exist yet. | |
| - name: Docker Pull | |
| run: docker pull "${{ env.IMAGE }}:${{ env.TAG }}" | |
| continue-on-error: true | |
| - name: Docker Build | |
| run: docker build -t "${{ env.IMAGE }}:${{ env.TAG }}" "${{ env.TAG }}" | |
| - name: Docker Push | |
| run: docker push "${{ env.IMAGE }}:${{ env.TAG }}" |