Add build linux to build all
This commit is contained in:
parent
e5bddaa8b1
commit
6f53026c38
1 changed files with 44 additions and 3 deletions
47
.github/workflows/build_all.yaml
vendored
47
.github/workflows/build_all.yaml
vendored
|
@ -79,8 +79,43 @@ jobs:
|
|||
with:
|
||||
name: windows-artifacts
|
||||
path: dist/
|
||||
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 &&
|
||||
mv dist/BTClockOTA dist/BTClockOTA-linux-amd64
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: linux-artifacts
|
||||
path: dist/
|
||||
release:
|
||||
needs: [build-macos, build-windows]
|
||||
needs: [build-macos, build-windows, build-linux]
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
|
@ -96,18 +131,24 @@ jobs:
|
|||
with:
|
||||
name: windows-artifacts
|
||||
path: windows
|
||||
- name: Get Job 1 Artifacts
|
||||
- name: Get macOS Artifacts
|
||||
if: ${{ always() }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: macos-artifacts
|
||||
path: macos
|
||||
- name: Get Linux Artifacts
|
||||
if: ${{ always() }}
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: linux-artifacts
|
||||
path: linux
|
||||
- name: Create release
|
||||
uses: ncipollo/release-action@v1
|
||||
with:
|
||||
tag: ${{ steps.getBlockHeight.outputs.blockHeight }}
|
||||
commit: main
|
||||
name: release-${{ steps.getBlockHeight.outputs.blockHeight }}
|
||||
artifacts: "macos/**/*.dmg,macos/**/*.zip,windows/**/*.exe"
|
||||
artifacts: "macos/**/*.dmg,macos/**/*.zip,windows/**/*.exe,linux/*"
|
||||
allowUpdates: true
|
||||
makeLatest: true
|
||||
|
|
Loading…
Reference in a new issue