feat(linux): publish Linux builds as Debian archive (.deb)

[skip ci]
This commit is contained in:
Jagandeep Brar
2022-11-24 21:50:44 -05:00
parent 3858de8d65
commit b1d01e02ca
6 changed files with 147 additions and 21 deletions

View File

@@ -59,6 +59,9 @@ jobs:
name: Build Linux
needs: [ prepare ]
uses: JagandeepBrar/LunaSea/.github/workflows/build_linux.yml@master
with:
build-number: ${{ needs.prepare.outputs.build-number }}
build-version: ${{ needs.prepare.outputs.build-version }}
build-macos:
name: Build macOS

View File

@@ -2,8 +2,57 @@ name: 'Build Linux'
on:
workflow_call:
inputs:
build-number:
required: true
type: string
build-version:
required: true
type: string
jobs:
build-debian:
name: Debian Archive
runs-on: ubuntu-latest
steps:
- name: Setup Environment
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
with:
platform: linux
- name: Build LunaSea
run: flutter build linux
- name: Prepare Artifact
run: dart ${{github.workspace }}/scripts/generate_debian.dart "${{ inputs.build-version }}+${{ inputs.build-number }}"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-debian
path: ${{ github.workspace }}/output
build-tarball:
name: Tarball Archive
runs-on: ubuntu-latest
steps:
- name: Setup Environment
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
with:
platform: linux
- name: Build LunaSea
run: flutter build linux
- name: Prepare Artifact
run: tar czf output/lunasea-linux-amd64.tar.gz -C build/linux/x64/release/bundle/ .
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-tarball
path: ${{ github.workspace }}/output
build-snapcraft:
name: Snapcraft
runs-on: ubuntu-latest
@@ -26,23 +75,4 @@ jobs:
name: linux-snapcraft
path: ${{ github.workspace }}/output
build-tarball:
name: Tarball Archive
runs-on: ubuntu-latest
steps:
- name: Setup Environment
uses: JagandeepBrar/LunaSea/.github/actions/prepare_for_build@master
with:
platform: linux
- name: Build LunaSea
run: flutter build linux
- name: Prepare Artifact
run: tar czf output/lunasea-linux-amd64.tar.gz -C build/linux/x64/release/bundle/ .
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-tarball
path: ${{ github.workspace }}/output

View File

@@ -47,6 +47,12 @@ jobs:
name: ios-appstore-package
path: ${{ github.workspace }}/output
- name: Download Linux Debian
uses: actions/download-artifact@v3
with:
name: linux-debian
path: ${{ github.workspace }}/output
- name: Download Linux Tarball
uses: actions/download-artifact@v3
with: