Different way of GitHub workflow
This commit is contained in:
parent
acdd6c23fa
commit
30ab20bcb6
1 changed files with 13 additions and 9 deletions
22
.github/workflows/build_artifacts.yaml
vendored
22
.github/workflows/build_artifacts.yaml
vendored
|
@ -12,20 +12,24 @@ jobs:
|
||||||
build-windows:
|
build-windows:
|
||||||
runs-on:
|
runs-on:
|
||||||
- ubuntu-latest
|
- ubuntu-latest
|
||||||
container:
|
|
||||||
image: batonogov/pyinstaller-windows:latest
|
|
||||||
options: --rm
|
|
||||||
volumes:
|
|
||||||
- ${{ github.workspace }}:/src/
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
- name: Set up Docker Buildx
|
||||||
- name: Run PyInstaller
|
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: |
|
run: |
|
||||||
pyinstaller BTClockOTA.spec
|
docker run --rm \
|
||||||
|
--volume "${{ github.workspace }}:$(pwd):/src/" \
|
||||||
|
batonogov/pyinstaller-windows:latest
|
||||||
- name: Archive artifacts
|
- name: Archive artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue