Skip to content

Commit

Permalink
CI updates
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 30, 2024
1 parent d33266a commit 40829fe
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,18 +66,18 @@ jobs:
go-version-file: "go.mod"

- name: Install WebView2 Runtime
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
shell: pwsh
run: |
Invoke-WebRequest -Uri "https://go.microsoft.com/fwlink/p/?LinkId=2124703" -OutFile "MicrosoftEdgeWebView2Setup.exe"
Start-Process -FilePath ".\MicrosoftEdgeWebView2Setup.exe" -ArgumentList "/silent", "/install" -Wait
- name: Set up MinGW
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
run: choco install mingw -y

- name: Install dependencies
if: ${{ matrix.platform }} == 'linux'
if: matrix.platform == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y file build-essential pkg-config
Expand All @@ -99,15 +99,15 @@ jobs:
- run: flutter --version

- name: Setup JDK
if: ${{ matrix.platform }} == 'android'
if: matrix.platform == 'android'
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
cache: 'gradle'

- name: Set gradle properties
if: ${{ matrix.platform }} == 'android'
if: matrix.platform == 'android'
env:
GRADLE_PROPERTIES: ${{ secrets.GRADLE_PROPERTIES }}
run: |
Expand All @@ -117,7 +117,7 @@ jobs:
- name: Decode Keystore
id: write_file
if: ${{ matrix.platform }} == 'android'
if: matrix.platform == 'android'
uses: timheuer/[email protected]
with:
fileName: 'keystore.release.jks'
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
dart pub global activate flutter_distributor
- name: Sign liblantern.dll with Azure Code Signing
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
uses: getlantern/trusted-signing-action@main
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -171,7 +171,7 @@ jobs:
timestamp-digest: SHA256

- name: Move liblantern.dll to release directory
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
shell: bash
run: |
mv liblantern.dll "build/windows/${{inputs.arch}}/runner/Release"
Expand All @@ -193,15 +193,15 @@ jobs:
VERSION: "${{ env.version }}"

- name: Install darwin installer dependencies
if: ${{ matrix.platform }} == 'macos'
if: matrix.platform == 'macos'
run: |
npm install -g appdmg
brew tap joshdk/tap
brew install joshdk/tap/retry
brew install imagemagick || true
- name: Build darwin installer
if: ${{ matrix.platform }} == 'macos'
if: matrix.platform == 'macos'
run: |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
security create-keychain -p temporaty-password build.keychain
Expand All @@ -216,21 +216,21 @@ jobs:
MACOS_CERTIFICATE_PWD: ${{ secrets.MACOS_BNS_CERT_PASS }}
- name: Build installer
if: ${{ matrix.platform }} == 'linux'
if: matrix.platform == 'linux'
run: |
cp liblantern.so "build/linux/${{inputs.dist-suffix}}/release/bundle"
make package-linux
mv dist/${{ env.APP_VERSION }}/lantern-${{ env.APP_VERSION }}-linux.deb lantern_${{inputs.version}}_x64.deb
mv dist/${{ env.APP_VERSION }}/lantern-${{ env.APP_VERSION }}-linux.rpm lantern_${{inputs.version}}_x64.rpm
- name: Rename installer
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
shell: bash
run: |
mv "dist/${{ env.APP_VERSION }}/lantern-${{ env.APP_VERSION }}-windows-setup.exe" lantern-installer${{inputs.installer-suffix}}.exe
- name: Sign EXE with Azure Code Signing
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
uses: getlantern/trusted-signing-action@main
with:
azure-tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -246,7 +246,7 @@ jobs:
timestamp-digest: SHA256

- uses: actions/upload-artifact@v4
if: ${{ matrix.platform }} == 'android'
if: matrix.platform == 'android'
with:
name: android-apk-build
retention-days: 2
Expand All @@ -255,21 +255,21 @@ jobs:
- name: Upload EXE artifact
uses: actions/upload-artifact@v4
if: ${{ matrix.platform }} == 'windows'
if: matrix.platform == 'windows'
with:
name: windows${{inputs.build-suffix}}-installer-signed
path: |
lantern-installer${{inputs.installer-suffix}}.exe
- uses: actions/upload-artifact@v4
if: ${{ matrix.platform }} == 'linux'
if: matrix.platform == 'linux'
with:
name: linux-deb-build
path: |
lantern_${{inputs.version}}_x64.deb
- uses: actions/upload-artifact@v4
if: ${{ matrix.platform }} == 'linux'
if: matrix.platform == 'linux'
with:
name: linux-rpm-build
path: |
Expand Down

0 comments on commit 40829fe

Please sign in to comment.