-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ebba46f
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
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 |
This file contains 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
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 |