... #9
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/docker-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 | |
| # 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 librepcb/librepcb-dev:windowsservercore-ltsc2025-qt6.6-64bit-1 | |
| continue-on-error: true | |
| - name: Docker Build | |
| run: docker build -t "${{ env.IMAGE }}:${{ env.TAG }}-ci" "${{ env.TAG }}" | |
| - name: Docker Login | |
| if: ${{ success() && (github.event_name == 'push') }} | |
| run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login "${{ env.REGISTRY }}" -u "${{ github.actor }}" --password-stdin | |
| - name: Docker Push | |
| if: ${{ success() && (github.event_name == 'push') }} | |
| run: docker push "${{ env.IMAGE }}:${{ env.TAG }}-ci" |