Skip to content

Commit

Permalink
Use self-hosted AWS runners (#426)
Browse files Browse the repository at this point in the history
  • Loading branch information
birkskyum authored Sep 8, 2022
1 parent 3657ca5 commit 95f4110
Show file tree
Hide file tree
Showing 16 changed files with 7,210 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ios-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ on:

jobs:
build:
runs-on: macos-12
runs-on: [self-hosted, macOS, ARM64]
concurrency:
# cancel jobs on PRs only
group: ${{ github.workflow }}-${{ github.ref }}
Expand All @@ -78,7 +78,6 @@ jobs:
run:
working-directory: platform/ios
shell: bash

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -104,8 +103,12 @@ jobs:
${{ runner.os }}-build-
${{ runner.os }}-
- uses: actions/setup-node@v3
with:
node-version: 18

- name: npm install
run: npm install --ignore-scripts
run: npm ci --ignore-scripts

- name: Prepare ccache
run: ccache --clear
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ios-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build:
runs-on: macos-12
runs-on: [self-hosted, macOS, ARM64]
env:
BUILDTYPE: Release
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
${{ runner.os }}-
- name: npm install
run: npm install --ignore-scripts
run: npm ci --ignore-scripts

- name: Prepare ccache
run: ccache --clear
Expand Down
11 changes: 8 additions & 3 deletions .github/workflows/macos-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ concurrency:

jobs:
build:
runs-on: macos-12
name: MacOS CI Tests
runs-on: [self-hosted, macOS, ARM64]
env:
BUILDTYPE: Debug
HOMEBREW_NO_AUTO_UPDATE: 1
Expand Down Expand Up @@ -105,8 +106,12 @@ jobs:
${{ runner.macos }}-build-
${{ runner.macos }}-
- uses: actions/setup-node@v3
with:
node-version: 18

- name: npm install
run: npm install --ignore-scripts
run: npm ci --ignore-scripts

- name: Prepare ccache
run: ccache --clear
Expand Down Expand Up @@ -140,4 +145,4 @@ jobs:
run: make macos-lint

- name: Darwin Style Code check
run: make darwin-style-code
run: make darwin-style-code
3 changes: 0 additions & 3 deletions platform/ios/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@ test/fixtures/storage/assets.zip
buck-out
.buckd

# Generated file from npm/yarn
package-lock.json

# Visual Studio Code
.vscode
mapbox-gl-native.code-workspace
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ IOS_WORK_PATH = platform/ios/ios.xcworkspace
IOS_USER_DATA_PATH = $(IOS_WORK_PATH)/xcuserdata/$(USER).xcuserdatad

IOS_XCODEBUILD_SIM = xcodebuild \
ARCHS=x86_64 ONLY_ACTIVE_ARCH=YES \
ARCHS=arm64 ONLY_ACTIVE_ARCH=YES \
-derivedDataPath $(IOS_OUTPUT_PATH) \
-configuration $(BUILDTYPE) -sdk iphonesimulator \
-workspace $(IOS_WORK_PATH) \
Expand Down
Loading

0 comments on commit 95f4110

Please sign in to comment.