mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-31 04:32:32 +00:00
feat(linux): publish Linux builds as Debian archive (.deb)
[skip ci]
This commit is contained in:
3
.github/workflows/build.yml
vendored
3
.github/workflows/build.yml
vendored
@@ -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
|
||||
|
||||
72
.github/workflows/build_linux.yml
vendored
72
.github/workflows/build_linux.yml
vendored
@@ -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
|
||||
|
||||
6
.github/workflows/publish_s3.yml
vendored
6
.github/workflows/publish_s3.yml
vendored
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user