Update build-linux-arm64-ci.yml #154
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Passy for all platforms | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [ opened, synchronize, reopened, review_requested ] | |
branches: | |
- main | |
- dev | |
jobs: | |
build_android: | |
name: Build Passy for Android | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'adopt' | |
- name: Install flutter | |
shell: bash | |
run: | | |
git submodule init | |
git submodule update | |
echo "$PWD/submodules/flutter/bin" >> $GITHUB_PATH | |
- name: Configure flutter | |
shell: bash | |
run: flutter config --no-analytics | |
- name: Build Android | |
shell: bash | |
run: bash build_android.sh | |
- name: Prepare releases | |
shell: bash | |
run: | | |
cd .. | |
mkdir build | |
cp Passy/build/app/outputs/flutter-apk/app-release.apk build/Passy-Android.apk | |
- name: Upload Android build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: android | |
path: /home/runner/work/Passy/build/Passy-Android.apk | |
build_linux: | |
name: Build Passy for Linux | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
shell: bash | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install clang cmake ninja-build pkg-config libgtk-3-dev liblzma-dev binutils coreutils desktop-file-utils fakeroot fuse libgdk-pixbuf2.0-dev patchelf python3-pip python3-setuptools squashfs-tools strace util-linux zsync | |
- name: Install flutter | |
shell: bash | |
run: | | |
git submodule init | |
git submodule update | |
echo "$PWD/submodules/flutter/bin" >> $GITHUB_PATH | |
- name: Configure flutter | |
shell: bash | |
run: flutter config --no-analytics | |
- name: Build with updates popup | |
shell: bash | |
run: echo "echo 3;echo y;echo;" | bash | bash build_all.sh | |
- name: Prepare releases | |
shell: bash | |
run: | | |
cd .. | |
mkdir -p build/linux-bundle/Passy | |
cp -r Passy/build/linux/x64/release/bundle/. build/linux-bundle/Passy | |
cp Passy/build/appimage/Passy-Latest-x86_64.AppImage build | |
chmod +x build/linux-bundle/Passy/passy | |
chmod +x build/Passy-Latest-x86_64.AppImage | |
- name: Archive Linux bundle build | |
uses: thedoctor0/zip-release@0.7.1 | |
with: | |
type: zip | |
directory: ../build/linux-bundle | |
filename: Passy-Linux-Bundle.zip | |
path: Passy | |
- name: Archive Linux AppImage build | |
uses: thedoctor0/zip-release@0.7.1 | |
with: | |
type: zip | |
directory: ../build | |
filename: Passy-Linux-AppImage.zip | |
path: Passy-Latest-x86_64.AppImage | |
- name: Upload Linux bundle build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-bundle | |
path: /home/runner/work/Passy/build/linux-bundle/Passy-Linux-Bundle.zip | |
- name: Upload Linux AppImage build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-appimage | |
path: /home/runner/work/Passy/build/Passy-Linux-AppImage.zip | |
- name: Build without updates popup | |
shell: bash | |
run: echo "echo 3;echo n;echo;" | bash | bash build_all.sh | |
- name: Prepare releases | |
shell: bash | |
run: | | |
cd .. | |
rm -rf build/* | |
mkdir -p build/linux-bundle/Passy | |
cp -r Passy/build/linux/x64/release/bundle/. build/linux-bundle/Passy | |
cp Passy/build/appimage/Passy-Latest-x86_64.AppImage build | |
chmod +x build/linux-bundle/Passy/passy | |
chmod +x build/Passy-Latest-x86_64.AppImage | |
- name: Archive Linux bundle build | |
uses: thedoctor0/zip-release@0.7.1 | |
with: | |
type: zip | |
directory: ../build/linux-bundle | |
filename: Passy-Linux-Bundle.zip | |
path: Passy | |
- name: Archive Linux AppImage build | |
uses: thedoctor0/zip-release@0.7.1 | |
with: | |
type: zip | |
directory: ../build | |
filename: Passy-Linux-AppImage.zip | |
path: Passy-Latest-x86_64.AppImage | |
- name: Upload Linux bundle no updates popup build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-bundle-no-updates-popup | |
path: /home/runner/work/Passy/build/linux-bundle/Passy-Linux-Bundle.zip | |
- name: Upload Linux AppImage no updates popup build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-appimage-no-updates-popup | |
path: /home/runner/work/Passy/build/Passy-Linux-AppImage.zip | |
build_windows: | |
name: Build Passy for Windows | |
runs-on: windows-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install flutter | |
shell: bash | |
run: | | |
git submodule init | |
git submodule update | |
echo "$PWD/submodules/flutter/bin" >> $GITHUB_PATH | |
echo "$PWD/submodules/flutter/bin/cache/dart-sdk/bin" >> $GITHUB_PATH | |
- name: Configure flutter | |
shell: bash | |
run: flutter config --no-analytics | |
- name: Build Passy for Windows | |
shell: bash | |
run: flutter --no-version-check --suppress-analytics build windows | |
- name: Prepare releases | |
shell: bash | |
run: | | |
cd .. | |
mkdir -p build/windows-portable/Passy | |
cp -r Passy/build/windows/x64/runner/Release/. build/windows-portable/Passy | |
- name: Upload Windows portable build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: windows-portable | |
path: D:\a\Passy\build\windows-portable |