Ubuntu Actions (#393)

Implement Ubuntu machines for most GitHub Workflows
This commit is contained in:
Ritesh Shukla
2025-06-01 08:19:01 +05:30
committed by GitHub
parent 42e63b58f3
commit 71c0000b57
4 changed files with 27 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ on:
jobs:
build-android:
runs-on: macos-15
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
@@ -13,12 +13,18 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0' # Match your local Ruby version
bundler-cache: true
- name: 💬 Echo package.json version to Github ENV
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- name: 🤖 Run yarn init-android
run: yarn init-android
run: yarn install --network-concurrency 1
- name: 🚀 Run fastlane build
run: yarn fastlane:android:build

View File

@@ -26,7 +26,7 @@ on:
jobs:
publish-android:
if: ${{ github.event.inputs['build-platform'] == 'Android' || github.event.inputs['build-platform'] == 'Both' }}
runs-on: macos-15
runs-on: ubuntu-latest
outputs:
version: ${{ steps.setver.outputs.version }}
steps:
@@ -40,8 +40,14 @@ jobs:
with:
node-version: 20
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: 🍎 Run yarn init-android
run: yarn init-android
run: yarn install --network-concurrency 1
- name: + Version Up
if: ${{ github.event.inputs['version-bump'] != 'No Bump' }}
@@ -100,6 +106,8 @@ jobs:
uses: actions/setup-node@v4
with:
node-version: 20
- name: 🍎 Run yarn init-ios:new-arch
run: yarn init-ios:new-arch
@@ -154,12 +162,17 @@ jobs:
finalize-release:
needs: [publish-android, publish-ios]
runs-on: macos-15
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout Repo
uses: actions/checkout@v4
with:
token: ${{ secrets.SIGNING_REPO_PAT }}
- name: 💎 Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
bundler-cache: true
- name: ⬇️ Download Android Artifacts
if: ${{ github.event.inputs['build-platform'] == 'Android' || github.event.inputs['build-platform'] == 'Both' }}

View File

@@ -5,7 +5,7 @@ on:
- 'main'
jobs:
publish-ota-update:
runs-on: macos-15
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4

View File

@@ -6,7 +6,7 @@ on:
jobs:
run-jest-test-suite:
runs-on: macos-15
runs-on: ubuntu-latest
steps:
- name: 🛒 Checkout
uses: actions/checkout@v4
@@ -20,7 +20,7 @@ jobs:
run: echo VERSION_NUMBER=$(node -p -e "require('./package.json').version") >> $GITHUB_ENV
- name: 🤖 Run yarn init-android
run: yarn init-android
run: yarn install --network-concurrency 1
- name: 🔍 Run yarn tsc
run: yarn tsc