diff --git a/.github/workflows/swift-android.yml b/.github/workflows/swift-android.yml new file mode 100644 index 0000000000..87e98cfedf --- /dev/null +++ b/.github/workflows/swift-android.yml @@ -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" diff --git a/.github/workflows/swift_linux.yml b/.github/workflows/swift_linux.yml new file mode 100644 index 0000000000..ea2523805a --- /dev/null +++ b/.github/workflows/swift_linux.yml @@ -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