40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
name: Build Linux artifacts
|
|
|
|
on: workflow_dispatch
|
|
|
|
jobs:
|
|
build-linux:
|
|
runs-on:
|
|
- ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
- name: Login to GitHub Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: ghcr.io
|
|
username: ${{ github.actor }}
|
|
password: ${{ secrets.GITHUB_TOKEN }}
|
|
- 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: |
|
|
docker run --rm \
|
|
--volume "${{ github.workspace }}:/src/" \
|
|
--env SPECFILE=./BTClockOTA.spec \
|
|
ghcr.io/btclock/pyinstaller-wxpython-linux:latest
|
|
- name: Archive artifacts
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: linux-artifacts
|
|
path: dist/
|