Skip to content

Setup CI to build Windows image #70

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 8, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: CI

on: [push, pull_request]

env:
REGISTRY: "ghcr.io"
IMAGE: "ghcr.io/librepcb/docker-librepcb-dev"

jobs:
windowsservercore-ltsc2025:
name: Windows Server Core LTSC2025
runs-on: windows-2025
env:
TAG: "windowsservercore-ltsc2025-qt6.6-64bit"
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
# First we pull the image, hopefully it will act as a cache to speed
# up the build.
- 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 }}-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"
- name: Docker Logout
if: ${{ github.event_name == 'push' }}
run: docker logout "${{ env.REGISTRY }}"
continue-on-error: true
Loading