Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/workflows/swift-android.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Build ATProtoKit on Android

on:
push:
branches:
- main
pull_request:
branches:
- main
- develop
workflow_dispatch:

jobs:
android-build:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Build Swift Package for Android
uses: swift-android-sdk/swift-android-action@v2
with:
swift-version: "6.1"
run-tests: false
# run-tests: true # When ATProtoKit has tests available, this will be used instead of the above line.
swift-configuration: debug
# swift-build-flags: "--target aarch64-unknown-linux-android24"
22 changes: 22 additions & 0 deletions .github/workflows/swift_linux.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Build Swift Package on Ubuntu Linux

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: swift-actions/setup-swift@v2
- name: Get swift version
run: swift --version

- name: Build
run: swift build -v

# - name: Run tests
# run: swift test -v
Loading