From 740db947d5079f691828bb6b118f1edf7eba6b84 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Tue, 16 Dec 2025 09:06:52 -0500 Subject: [PATCH 1/4] Android CI --- .github/workflows/android.yml | 19 +++++++++++++++++++ README.md | 1 + 2 files changed, 20 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..0aa7c1e --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,19 @@ +name: tests + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + linux: + runs-on: ubuntu-24.04 + name: Ubuntu 24.04 + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Test on Android emulator + uses: skiptools/swift-android-action@v2 + diff --git a/README.md b/README.md index 096709e..22cd241 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ The D library requires Swift 6.1 or later. | Platform | Status | | -------- | ------ | | 🐧 Linux | [![Tests](https://github.com/tayloraswift/d/actions/workflows/Tests.yml/badge.svg)](https://github.com/tayloraswift/d/actions/workflows/Tests.yml) | +| 🤖 Android | [![Tests](https://github.com/tayloraswift/d/actions/workflows/android.yml/badge.svg)](https://github.com/tayloraswift/d/actions/workflows/android.yml) | | 🍏 Darwin | [![Tests](https://github.com/tayloraswift/d/actions/workflows/Tests.yml/badge.svg)](https://github.com/tayloraswift/d/actions/workflows/Tests.yml) | | 🍏 Darwin (iOS) | [![iOS](https://github.com/tayloraswift/d/actions/workflows/iOS.yml/badge.svg)](https://github.com/tayloraswift/d/actions/workflows/iOS.yml) | | 🍏 Darwin (tvOS) | [![tvOS](https://github.com/tayloraswift/d/actions/workflows/tvOS.yml/badge.svg)](https://github.com/tayloraswift/d/actions/workflows/tvOS.yml) | From a1ca0a89ea6e2acaa8367358a53c4513afcab3af Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Tue, 16 Dec 2025 09:11:19 -0500 Subject: [PATCH 2/4] Fix workflow name --- .github/workflows/android.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 0aa7c1e..070b730 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,4 +1,4 @@ -name: tests +name: android on: push: @@ -7,7 +7,7 @@ on: branches: [ master ] jobs: - linux: + android-tests: runs-on: ubuntu-24.04 name: Ubuntu 24.04 steps: From d5fe52c6412b27bfd1042ed8144f18ad84f4d5b5 Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Tue, 16 Dec 2025 09:15:42 -0500 Subject: [PATCH 3/4] Update workflow name --- .github/workflows/android.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 070b730..b5af248 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -9,7 +9,6 @@ on: jobs: android-tests: runs-on: ubuntu-24.04 - name: Ubuntu 24.04 steps: - name: Checkout repository uses: actions/checkout@v3 From f500b9db73da4d1d45c744896ddfc8f24d7b428d Mon Sep 17 00:00:00 2001 From: Marc Prud'hommeaux Date: Tue, 16 Dec 2025 09:20:23 -0500 Subject: [PATCH 4/4] Free disk space before running or emulator sometimes runs out of space --- .github/workflows/android.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b5af248..0c39e27 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -13,6 +13,9 @@ jobs: - name: Checkout repository uses: actions/checkout@v3 + - name: Free disk space + run: sudo rm -rf /opt/microsoft /opt/google /opt/az /opt/ghc /usr/share/dotnet /usr/local/share/boost /opt/hostedtoolcache /usr/local/share/chromium + - name: Test on Android emulator uses: skiptools/swift-android-action@v2