Add linux build
This commit is contained in:
parent
fee2992e86
commit
e5bddaa8b1
1 changed files with 39 additions and 0 deletions
39
.github/workflows/build_linux.yaml
vendored
Normal file
39
.github/workflows/build_linux.yaml
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
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/
|
Loading…
Reference in a new issue