Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
lisanna-dettwyler committed May 21, 2024
0 parents commit ebba46f
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/docker/windows.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# escape=`

FROM mcr.microsoft.com/dotnet/framework/runtime:4.8

SHELL ["powershell"]
RUN [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; `
wget -Uri https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile vs_buildtools.exe
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
push:
branches: [master]

defaults:
run:
shell: bash

jobs:
build:
runs-on: [windows-latest]
strategy:
fail-fast: false
matrix:
buildkit: [true, false]
steps:
- uses: actions/checkout@v4
- name: Setup containerd
if: matrix.buildkit
shell: pwsh
run: |
$version = "1.7.15"
curl.exe -L https://github.com/containerd/containerd/releases/download/v$version/containerd-$version-windows-amd64.tar.gz -o containerd.tar.gz
tar.exe xvf containerd.tar.gz
.\bin\containerd.exe config default | Out-File .\bin\config.toml -Encoding ascii
.\bin\containerd.exe --register-service
Start-Service containerd
- name: Setup BuildKit
if: matrix.buildkit
shell: pwsh
run: |
$version = "v0.13.1"
curl.exe -L https://github.com/moby/buildkit/releases/download/$version/buildkit-$version.windows-amd64.tar.gz -o buildkit.tar.gz
tar.exe xvf buildkit.tar.gz
.\bin\buildkitd.exe --register-service --debug --containerd-worker=true --service-name buildkitd
Start-Service buildkitd
- name: Setup Docker Buildx
if: matrix.buildkit
shell: pwsh
run: |
$version = "v0.13.1"
curl.exe -L https://github.com/docker/buildx/releases/download/$version/buildx-$version.windows-amd64.exe -o $env:ProgramData\Docker\cli-plugins\docker-buildx.exe
- uses: docker/[email protected]
if: matrix.buildkit
with:
driver: remote
endpoint: npipe:////./pipe/buildkitd
- name: Buildx build
run: docker ${{ matrix.buildkit && 'buildx' }} build - < .github/docker/windows.Dockerfile

0 comments on commit ebba46f

Please sign in to comment.