From 772f196867356ff9577f53d643a267b56dc65662 Mon Sep 17 00:00:00 2001 From: Joannis Date: Tue, 17 Sep 2024 14:23:08 +0000 Subject: [PATCH] Update from hummingbird-project-template 90cc92742619f256866975dec51c6899fbb537bc --- .github/CODEOWNERS | 2 +- .github/workflows/api-breakage.yml | 2 +- .github/workflows/ci.yml | 6 ++++ .github/workflows/nightly.yml | 3 ++ .github/workflows/verify-documentation.yml | 35 ++++++++++++++++++++++ scripts/validate.sh | 0 6 files changed, 46 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/verify-documentation.yml mode change 100755 => 100644 scripts/validate.sh diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 1f09c56..847278a 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1 +1 @@ -* @adam-fowler @Joannis +* @adam-fowler @Joannis @thoven87 diff --git a/.github/workflows/api-breakage.yml b/.github/workflows/api-breakage.yml index a69ed35..87eedac 100644 --- a/.github/workflows/api-breakage.yml +++ b/.github/workflows/api-breakage.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 15 container: - image: swift:5.10 + image: swift:latest steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d5568d..5e53cd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,12 +4,16 @@ on: push: branches: - main + paths: + - '**.swift' + - '**.yml' pull_request: workflow_dispatch: concurrency: group: ${{ github.workflow }}-${{ github.ref }}-ci cancel-in-progress: true + jobs: linux: runs-on: ubuntu-latest @@ -17,9 +21,11 @@ jobs: strategy: matrix: image: ["swift:5.9", "swift:5.10", "swiftlang/swift:nightly-6.0-jammy"] + container: image: ${{ matrix.image }} + steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 1009911..060e944 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -3,6 +3,7 @@ name: Swift nightly build on: workflow_dispatch: + jobs: linux: runs-on: ubuntu-latest @@ -10,9 +11,11 @@ jobs: strategy: matrix: image: ['nightly-focal', 'nightly-jammy', 'nightly-amazonlinux2'] + container: image: swiftlang/swift:${{ matrix.image }} + steps: - name: Checkout uses: actions/checkout@v4 diff --git a/.github/workflows/verify-documentation.yml b/.github/workflows/verify-documentation.yml new file mode 100644 index 0000000..a587e6a --- /dev/null +++ b/.github/workflows/verify-documentation.yml @@ -0,0 +1,35 @@ +name: Verify Documentation + +on: + pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }}-verifydocs + cancel-in-progress: true + +jobs: + linux: + runs-on: ubuntu-latest + timeout-minutes: 15 + container: + image: swift:latest + steps: + - name: Install rsync 📚 + run: | + apt-get update && apt-get install -y rsync bc + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + path: "package" + - name: Checkout + uses: actions/checkout@v4 + with: + repository: "hummingbird-project/hummingbird-docs" + fetch-depth: 0 + path: "documentation" + - name: Verify + run: | + cd documentation + swift package edit ${GITHUB_REPOSITORY#*/} --path ../package + ./scripts/build-docc.sh -e + diff --git a/scripts/validate.sh b/scripts/validate.sh old mode 100755 new mode 100644