Skip to content

An open-source cross-platform alternative to AirDrop

ci: use github arm64 runner

Tien Do Namb3e56a8459cd
diff --git a/.github/workflows/build_apk.yml b/.github/workflows/build_apk.yml
index 61ae0eb1..c04104cf 100644
--- a/.github/workflows/build_apk.yml
+++ b/.github/workflows/build_apk.yml
@@ -5,7 +5,6 @@ on:
env:
FLUTTER_VERSION: "3.41.9"
- RUST_VERSION: "1.84.1"
APK_BUILD_DIR: "/tmp/build"
jobs:
@@ -66,7 +65,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- override: ${{ env.RUST_VERSION }}
- name: Dependencies
working-directory: ${{ env.APK_BUILD_DIR }}/app
diff --git a/.github/workflows/build_arm64_appimage.yml b/.github/workflows/build_arm64_appimage.yml
index 13fc7e42..82087fa9 100644
--- a/.github/workflows/build_arm64_appimage.yml
+++ b/.github/workflows/build_arm64_appimage.yml
@@ -21,11 +21,9 @@ jobs:
VERSION=$(sed -n 's/^version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' app/pubspec.yaml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- # Manage the Flutter version on the self-hosted runner manually!
- # Flutter currently doesn't provide Linux ARM64 binaries.
build_appimage_arm_64:
needs: build
- runs-on: [self-hosted, linux, arm64]
+ runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
@@ -35,6 +33,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev libfuse2
+ # Flutter doesn't provide Linux ARM64 binaries, so clone the SDK from GitHub instead of using a setup action.
+ - name: Setup Flutter SDK
+ run: |
+ git clone --depth 1 --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git $HOME/flutter
+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
+ $HOME/flutter/bin/flutter --version
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+
+ - name: Check rust-toolchain.toml
+ working-directory: packages/localsend_isolates
+ run: rustup show
+
- name: Dependencies
working-directory: app
run: flutter pub get
diff --git a/.github/workflows/build_arm64_deb.yml b/.github/workflows/build_arm64_deb.yml
index 69cb7cd5..758632b8 100644
--- a/.github/workflows/build_arm64_deb.yml
+++ b/.github/workflows/build_arm64_deb.yml
@@ -21,11 +21,9 @@ jobs:
VERSION=$(sed -n 's/^version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' app/pubspec.yaml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- # Manage the Flutter version on the self-hosted runner manually!
- # Flutter currently doesn't provide Linux ARM64 binaries.
build_deb_arm_64:
needs: build
- runs-on: [self-hosted, linux, arm64]
+ runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
@@ -35,6 +33,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev
+ # Flutter doesn't provide Linux ARM64 binaries, so clone the SDK from GitHub instead of using a setup action.
+ - name: Setup Flutter SDK
+ run: |
+ git clone --depth 1 --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git $HOME/flutter
+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
+ $HOME/flutter/bin/flutter --version
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+
+ - name: Check rust-toolchain.toml
+ working-directory: packages/localsend_isolates
+ run: rustup show
+
- name: Enable dart_distributor
run: dart pub global activate flutter_distributor
diff --git a/.github/workflows/build_arm64_tar.yml b/.github/workflows/build_arm64_tar.yml
index f1fa8ada..374c9ffd 100644
--- a/.github/workflows/build_arm64_tar.yml
+++ b/.github/workflows/build_arm64_tar.yml
@@ -21,11 +21,9 @@ jobs:
VERSION=$(sed -n 's/^version: \([0-9]*\.[0-9]*\.[0-9]*\).*/\1/p' app/pubspec.yaml)
echo "version=$VERSION" >> $GITHUB_OUTPUT
- # Manage the Flutter version on the self-hosted runner manually!
- # Flutter currently doesn't provide Linux ARM64 binaries.
build_tar_arm_64:
needs: build
- runs-on: [self-hosted, linux, arm64]
+ runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
@@ -35,6 +33,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev
+ # Flutter doesn't provide Linux ARM64 binaries, so clone the SDK from GitHub instead of using a setup action.
+ - name: Setup Flutter SDK
+ run: |
+ git clone --depth 1 --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git $HOME/flutter
+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
+ $HOME/flutter/bin/flutter --version
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+
+ - name: Check rust-toolchain.toml
+ working-directory: packages/localsend_isolates
+ run: rustup show
+
- name: Dependencies
working-directory: app
run: flutter pub get
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 8a5b37ef..24be1d87 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,7 +5,6 @@ on:
env:
FLUTTER_VERSION: "3.41.9"
- RUST_VERSION: "1.84.1"
APK_BUILD_DIR: "/tmp/build"
jobs:
@@ -66,7 +65,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- override: ${{ env.RUST_VERSION }}
- name: Check rust-toolchain.toml
working-directory: ${{ env.APK_BUILD_DIR }}/packages/localsend_isolates
@@ -110,7 +108,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- override: ${{ env.RUST_VERSION }}
- name: Check rust-toolchain.toml
working-directory: packages/localsend_isolates
@@ -135,11 +132,9 @@ jobs:
name: tar-gz-x86-64-result
path: ./app/*.tar.gz
- # Manage the Flutter version on the self-hosted runner manually!
- # Flutter currently doesn't provide Linux ARM64 binaries.
build_tar_arm_64:
needs: build
- runs-on: [ self-hosted, linux, arm64 ]
+ runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
@@ -149,6 +144,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev
+ # Flutter doesn't provide Linux ARM64 binaries, so clone the SDK from GitHub instead of using a setup action.
+ - name: Setup Flutter SDK
+ run: |
+ git clone --depth 1 --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git $HOME/flutter
+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
+ $HOME/flutter/bin/flutter --version
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+
+ - name: Check rust-toolchain.toml
+ working-directory: packages/localsend_isolates
+ run: rustup show
+
- name: Dependencies
working-directory: app
run: flutter pub get
@@ -189,7 +200,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- override: ${{ env.RUST_VERSION }}
- name: Check rust-toolchain.toml
working-directory: packages/localsend_isolates
@@ -226,11 +236,9 @@ jobs:
name: deb-x86-64-result
path: ${{ steps.find_deb.outputs.deb_path }}
- # Manage the Flutter version on the self-hosted runner manually!
- # Flutter currently doesn't provide Linux ARM64 binaries.
build_deb_arm_64:
needs: build
- runs-on: [ self-hosted, linux, arm64 ]
+ runs-on: ubuntu-24.04-arm
steps:
- uses: actions/checkout@v6
@@ -240,6 +248,22 @@ jobs:
sudo apt-get update
sudo apt-get install -y clang cmake libgtk-3-dev ninja-build libayatana-appindicator3-dev
+ # Flutter doesn't provide Linux ARM64 binaries, so clone the SDK from GitHub instead of using a setup action.
+ - name: Setup Flutter SDK
+ run: |
+ git clone --depth 1 --branch ${{ env.FLUTTER_VERSION }} https://github.com/flutter/flutter.git $HOME/flutter
+ echo "$HOME/flutter/bin" >> $GITHUB_PATH
+ $HOME/flutter/bin/flutter --version
+
+ - name: Install Rust
+ uses: actions-rs/toolchain@v1
+ with:
+ toolchain: stable
+
+ - name: Check rust-toolchain.toml
+ working-directory: packages/localsend_isolates
+ run: rustup show
+
- name: Enable dart_distributor
run: dart pub global activate flutter_distributor
@@ -289,7 +313,6 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- override: ${{ env.RUST_VERSION }}
- name: Check rust-toolchain.toml
working-directory: packages/localsend_isolates