diff --git a/.changeset/silly-cows-sing.md b/.changeset/silly-cows-sing.md new file mode 100644 index 0000000..fdbcaf3 --- /dev/null +++ b/.changeset/silly-cows-sing.md @@ -0,0 +1,6 @@ +--- +--- + +CI and README only — one workflow per platform, each named for the platform it +covers, and a badge row that says which three CI actually proves. No package +change, so no release. diff --git a/.github/workflows/ci-android.yml b/.github/workflows/ci-android.yml new file mode 100644 index 0000000..9ca6ea8 --- /dev/null +++ b/.github/workflows/ci-android.yml @@ -0,0 +1,28 @@ +name: Android + +on: + push: + branches: + - main + paths-ignore: + - "README.md" + - "CODE_OF_CONDUCT.md" + - ".editorconfig" + - ".spi.yml" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + linux-android: + name: Test Android + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v6 + - name: "Test Swift Package on Android" + uses: skiptools/swift-android-action@v2 + with: + swift-version: "6.3" diff --git a/.github/workflows/ci.yml b/.github/workflows/ci-apple.yml similarity index 96% rename from .github/workflows/ci.yml rename to .github/workflows/ci-apple.yml index 4b4d92a..5bfbf21 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci-apple.yml @@ -1,17 +1,15 @@ -name: CI +name: Apple on: push: - # branches: - # - main + branches: + - main paths-ignore: - 'README.md' - 'CODE_OF_CONDUCT.md' - '.editorconfig' - '.spi.yml' pull_request: - branches: - - main concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} diff --git a/.github/workflows/ci-linux.yml b/.github/workflows/ci-linux.yml new file mode 100644 index 0000000..eb96101 --- /dev/null +++ b/.github/workflows/ci-linux.yml @@ -0,0 +1,34 @@ +name: Linux + +on: + push: + branches: + - main + paths-ignore: + - "README.md" + - "CODE_OF_CONDUCT.md" + - ".editorconfig" + - ".spi.yml" + pull_request: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +jobs: + linux_test: + name: Test Linux + runs-on: ubuntu-latest + container: + image: swift:${{matrix.swift-version}} + timeout-minutes: 30 + strategy: + matrix: + swift-version: + - "6.2" + steps: + - name: Checkout + uses: actions/checkout@v6 + - run: swift --version + - name: Test + run: swift test diff --git a/README.md b/README.md index 4c04dad..e6b99d2 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +[![Apple](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-apple.yml/badge.svg)](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-apple.yml) +[![Linux](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-linux.yml/badge.svg)](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-linux.yml) +[![Android](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-android.yml/badge.svg)](https://github.com/germ-network/AtprotoTypes/actions/workflows/ci-android.yml) + This library provides types corresponding to [atproto](https://atproto.com) type definitions.