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:
|
with:
|
||||||
name: windows-artifacts
|
name: windows-artifacts
|
||||||
path: dist/
|
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:
|
release:
|
||||||
needs: [build-macos, build-windows]
|
needs: [build-macos, build-windows, build-linux]
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
|
@ -96,18 +131,24 @@ jobs:
|
||||||
with:
|
with:
|
||||||
name: windows-artifacts
|
name: windows-artifacts
|
||||||
path: windows
|
path: windows
|
||||||
- name: Get Job 1 Artifacts
|
- name: Get macOS Artifacts
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
uses: actions/download-artifact@v4
|
uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: macos-artifacts
|
name: macos-artifacts
|
||||||
path: macos
|
path: macos
|
||||||
|
- name: Get Linux Artifacts
|
||||||
|
if: ${{ always() }}
|
||||||
|
uses: actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
name: linux-artifacts
|
||||||
|
path: linux
|
||||||
- name: Create release
|
- name: Create release
|
||||||
uses: ncipollo/release-action@v1
|
uses: ncipollo/release-action@v1
|
||||||
with:
|
with:
|
||||||
tag: ${{ steps.getBlockHeight.outputs.blockHeight }}
|
tag: ${{ steps.getBlockHeight.outputs.blockHeight }}
|
||||||
commit: main
|
commit: main
|
||||||
name: release-${{ steps.getBlockHeight.outputs.blockHeight }}
|
name: release-${{ steps.getBlockHeight.outputs.blockHeight }}
|
||||||
artifacts: "macos/**/*.dmg,macos/**/*.zip,windows/**/*.exe"
|
artifacts: "macos/**/*.dmg,macos/**/*.zip,windows/**/*.exe,linux/*"
|
||||||
allowUpdates: true
|
allowUpdates: true
|
||||||
makeLatest: true
|
makeLatest: true
|
||||||
|
|
Loading…
Reference in a new issue