Skip to content

Commit

Permalink
Matrix OS
Browse files Browse the repository at this point in the history
  • Loading branch information
hannesa2 committed May 8, 2024
1 parent 5fd9890 commit 4836fea
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/release-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,25 @@ on:

jobs:
release:
runs-on: macOS-13
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ macOS-13 ]
directory: [ install-sdk, emulator-run-cmd ]
java_version: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Install Docker
run: |
brew install docker docker-compose colima
colima start
docker run hello-world
- name: Set up JDK 17
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: ${{ matrix.java_version }}
- name: Prepare release
run: ./prepare-for-release.sh
- name: test ${{ matrix.directory }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@ on:
pull_request:
jobs:
test:
runs-on: ubuntu-22.04
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-22.04 ]
java_version: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: ${{ matrix.java_version }}
- name: test install-sdk
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v16.15.0 && npm install && npm ci && npm run build
working-directory: install-sdk
Expand Down
12 changes: 8 additions & 4 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,19 @@ jobs:
# with:
# name: logcat
# path: artifacts/logcat.log
test-macos-13:
runs-on: macOS-13
test-macos:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ macOS-13 ]
java_version: [ 17 ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
- name: Set up JDK ${{ matrix.java_version }}
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
java-version: ${{ matrix.java_version }}
- name: install node
run: |
brew install node
Expand Down

0 comments on commit 4836fea

Please sign in to comment.