From 30ab20bcb6233d72899b836144d0aef9a02010a3 Mon Sep 17 00:00:00 2001 From: Djuri Baars Date: Sun, 9 Jun 2024 14:50:38 +0200 Subject: [PATCH] Different way of GitHub workflow --- .github/workflows/build_artifacts.yaml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build_artifacts.yaml b/.github/workflows/build_artifacts.yaml index 9b8c8a5..65e8348 100644 --- a/.github/workflows/build_artifacts.yaml +++ b/.github/workflows/build_artifacts.yaml @@ -12,20 +12,24 @@ jobs: build-windows: runs-on: - ubuntu-latest - container: - image: batonogov/pyinstaller-windows:latest - options: --rm - volumes: - - ${{ github.workspace }}:/src/ steps: - name: Checkout repository uses: actions/checkout@v4 - - - name: Run PyInstaller + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Cache Docker layers + uses: actions/cache@v4 + with: + path: /tmp/.buildx-cache + key: ${{ runner.os }}-buildx-${{ github.sha }} + restore-keys: | + ${{ runner.os }}-buildx- + - name: Run Docker Container run: | - pyinstaller BTClockOTA.spec - + docker run --rm \ + --volume "${{ github.workspace }}:$(pwd):/src/" \ + batonogov/pyinstaller-windows:latest - name: Archive artifacts uses: actions/upload-artifact@v4 with: