11name : Build and test
22
3+ concurrency :
4+ group : w64devkit-${{ github.ref }}
5+ cancel-in-progress : true
6+
37on :
48 pull_request : {}
59 push :
2529 steps :
2630 - uses : actions/checkout@v4
2731
32+ - name : Set up Docker Buildx
33+ uses : docker/setup-buildx-action@v3
34+
2835 - name : Apply x86 patch
2936 if : matrix.arch == 'x86'
3037 run : patch -p1 -i src/variant-x86.patch
@@ -38,16 +45,26 @@ jobs:
3845 echo "version=${GIT_VERSION:1}" >> $GITHUB_OUTPUT
3946 echo "archive=w64devkit-$ARCH-${GIT_VERSION:1}" >> $GITHUB_OUTPUT
4047
41- - name : Build
48+ - name : Build and extract artifact
49+ uses : docker/build-push-action@v6
50+ with :
51+ context : .
52+ target : dist
53+ outputs : type=local,dest=.
54+ cache-from : type=gha,scope=w64devkit-${{ matrix.arch }}
55+ cache-to : type=gha,scope=w64devkit-${{ matrix.arch }},mode=max
56+
57+ - name : Rename artifact
4258 run : |
43- docker build -t w64devkit .
44- docker run --rm w64devkit > ${{ steps.filename.outputs.archive }}.exe
59+ mv w64devkit.exe ${{ steps.filename.outputs.archive }}.exe
60+ ls -lh ${{ steps.filename.outputs.archive }}.exe
4561
4662 - name : Upload artifact
4763 uses : actions/upload-artifact@v4
4864 with :
49- name : ${{ steps.filename.outputs.archive }}
50- path : w64devkit-*.exe
65+ name : ${{ steps.filename.outputs.archive }}.exe
66+ path : ${{ steps.filename.outputs.archive }}.exe
67+ compression-level : 0
5168
5269 - name : Create Release
5370 if : startsWith(github.ref, 'refs/tags/')
0 commit comments