Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 24 additions & 21 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,30 @@ jobs:
run: |
./scripts/ci/verify_linux_package.sh "./${{ env.FULL_INSTALLER_NAME }}.deb" "${{ matrix.arch }}"

- name: Upload Linux RPM candidate
uses: actions/upload-artifact@v4
with:
name: lantern-installer-rpm-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.rpm
if-no-files-found: error
retention-days: 2

- name: Upload Linux DEB candidate
uses: actions/upload-artifact@v4
with:
name: lantern-installer-deb-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.deb
if-no-files-found: error
retention-days: 2

- name: Upload Linux Arch candidate
uses: actions/upload-artifact@v4
with:
name: lantern-installer-pkg-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.pkg.tar.zst
if-no-files-found: error
retention-days: 2

- name: Install .deb and verify postinst started daemon
shell: bash
run: |
Expand Down Expand Up @@ -295,24 +319,3 @@ jobs:
if [[ "$AUTH_SMOKE_EXIT" -ne 0 ]]; then
exit "$AUTH_SMOKE_EXIT"
fi

- name: Upload Linux build
uses: actions/upload-artifact@v4
with:
name: lantern-installer-rpm-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.rpm
retention-days: 2

- name: Upload Linux build
uses: actions/upload-artifact@v4
with:
name: lantern-installer-deb-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.deb
retention-days: 2

- name: Upload Linux build (Arch)
uses: actions/upload-artifact@v4
with:
name: lantern-installer-pkg-${{ matrix.arch }}
path: ${{ env.FULL_INSTALLER_NAME }}.pkg.tar.zst
retention-days: 2
36 changes: 21 additions & 15 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,25 @@ jobs:

Move-Item "dist/$env:APP_VERSION/$env:APP_NAME-$env:APP_VERSION-windows-setup.exe" "$env:FULL_INSTALLER_NAME.exe"

- name: Sign installer
if: ${{ !inputs.skip_signing }}
shell: pwsh
env:
SIGNPATH_API_TOKEN: ${{ secrets.SIGNPATH_API_TOKEN }}
SIGNPATH_SIGNING_POLICY: ${{ vars.SIGNPATH_SIGNING_POLICY_SLUG }}
SIGNPATH_ORG_ID: ${{ vars.SIGNPATH_ORG_ID }}
SIGNPATH_PROJECT_SLUG: ${{ vars.SIGNPATH_PROJECT_SLUG }}
VERSION: ${{ inputs.version }}
FULL_INSTALLER_NAME: ${{ inputs.installer_base_name }}${{ inputs.build_type != 'production' && format('-{0}', inputs.build_type) || '' }}
run: |
./scripts/ci/sign-windows.ps1 `
-FilePath "$env:FULL_INSTALLER_NAME.exe" `
-SigningPolicy $env:SIGNPATH_SIGNING_POLICY `
-OrganizationId $env:SIGNPATH_ORG_ID `
-ProjectSlug $env:SIGNPATH_PROJECT_SLUG `
-ApiToken $env:SIGNPATH_API_TOKEN `
-Description "Installer - GitHub Actions build $env:VERSION"

- name: Windows installer smoke suite
shell: pwsh
timeout-minutes: 30
Expand Down Expand Up @@ -336,24 +355,11 @@ jobs:
run: |
flutter test integration_test/auth/auth_smoke_test.dart -d windows --reporter=expanded --dart-define=DISABLE_SYSTEM_TRAY=true

- name: Sign installer
if: ${{ !inputs.skip_signing }}
shell: pwsh
env:
SIGNPATH_API_TOKEN: ${{ secrets.SIGNPATH_API_TOKEN }}
FULL_INSTALLER_NAME: ${{ inputs.installer_base_name }}${{ inputs.build_type != 'production' && format('-{0}', inputs.build_type) || '' }}
run: |
./scripts/ci/sign-windows.ps1 `
-FilePath "$env:FULL_INSTALLER_NAME.exe" `
-SigningPolicy "${{ env.SIGNPATH_SIGNING_POLICY }}" `
-OrganizationId "${{ vars.SIGNPATH_ORG_ID }}" `
-ProjectSlug "${{ vars.SIGNPATH_PROJECT_SLUG }}" `
-ApiToken $env:SIGNPATH_API_TOKEN `
-Description "Installer - GitHub Actions build ${{ inputs.version }}"

- name: Upload Windows installer
if: ${{ always() }}
uses: actions/upload-artifact@v4
with:
name: lantern-installer-exe
path: ${{ inputs.installer_base_name }}${{ inputs.build_type != 'production' && format('-{0}', inputs.build_type) || '' }}.exe
if-no-files-found: warn
Comment thread
atavism marked this conversation as resolved.
Outdated
retention-days: 2
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: go version

- name: Cache Go modules
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/Library/Caches/go-build
Expand Down
Loading
Loading