Skip to content

Commit

Permalink
Speed up CI (#1419)
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler and swankjesse committed Mar 19, 2024
1 parent 53c5765 commit c74b3f2
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,15 @@ jobs:
./gradlew -Dkjs=false -Dknative=false -Dkwasm=false -Dtest.java.version=${{ matrix.java-version }} build --stacktrace
emulator:
runs-on: macos-latest
runs-on: ubuntu-latest
steps:
# https://github.blog/changelog/2023-02-23-hardware-accelerated-android-virtualization-on-actions-windows-and-linux-larger-hosted-runners/
- name: Enable KVM group perms
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
ls /dev/kvm
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
Expand Down Expand Up @@ -87,7 +94,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ macos-11, ubuntu-latest, windows-latest ]
os: [ macos-14, ubuntu-latest, windows-latest ]

steps:
- name: Checkout
Expand Down Expand Up @@ -120,7 +127,7 @@ jobs:
path: '**/build/reports'

publish:
runs-on: macos-13
runs-on: macos-14
if: github.repository == 'square/okio' && github.ref == 'refs/heads/master'
needs: [jvm, all-platforms, emulator]

Expand Down

0 comments on commit c74b3f2

Please sign in to comment.