diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 2907cfb3..28b6640f 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -26,8 +26,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: recursive - name: Check for changed files uses: dorny/paths-filter@v3 id: changes @@ -41,7 +39,7 @@ jobs: - name: Build if: steps.changes.outputs.src == 'true' run: | - set -o pipefail\ + set -o pipefail &&\ xcodebuild build-for-testing\ -scheme Runestone\ -sdk iphonesimulator\ @@ -50,7 +48,7 @@ jobs: - name: Test if: steps.changes.outputs.src == 'true' run: | - set -o pipefail\ + set -o pipefail &&\ xcodebuild test-without-building\ -scheme Runestone\ -sdk iphonesimulator\ diff --git a/.github/workflows/build_documentation.yml b/.github/workflows/build_documentation.yml new file mode 100644 index 00000000..cb983d9a --- /dev/null +++ b/.github/workflows/build_documentation.yml @@ -0,0 +1,33 @@ +name: Build Documentation +on: + workflow_dispatch: {} + pull_request: + branches: + - main +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + build: + name: Build Documentation + runs-on: macos-14 + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Check for changed files + uses: dorny/paths-filter@v3 + id: changes + with: + filters: | + src: + - '.github/workflows/build_documentation.yml' + - 'Sources/**' + - name: Build Documentation + if: steps.changes.outputs.src == 'true' + run: | + set -o pipefail &&\ + xcodebuild docbuild\ + -scheme Runestone\ + -destination 'generic/platform=iOS'\ + -derivedDataPath ../DerivedData\ + | xcbeautify --renderer github-actions diff --git a/.github/workflows/build_example_project.yml b/.github/workflows/build_example_project.yml index c74e9056..4157c6c5 100644 --- a/.github/workflows/build_example_project.yml +++ b/.github/workflows/build_example_project.yml @@ -26,8 +26,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: recursive - name: Check for changed files uses: dorny/paths-filter@v3 id: changes @@ -40,7 +38,7 @@ jobs: - name: Build if: steps.changes.outputs.src == 'true' run: | - set -o pipefail\ + set -o pipefail &&\ xcodebuild build\ -project Example/Example.xcodeproj\ -scheme Example\ diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index c5a0e6fb..4934398e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -25,8 +25,6 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: recursive - name: Check for changed files uses: dorny/paths-filter@v3 id: changes @@ -45,7 +43,7 @@ jobs: - name: Build if: steps.changes.outputs.src == 'true' run: | - set -o pipefail\ + set -o pipefail &&\ xcodebuild\ -scheme Runestone\ -sdk iphonesimulator\ diff --git a/.github/workflows/deploy_documentation.yml b/.github/workflows/deploy_documentation.yml index 693d6d3c..a4d5dd1e 100644 --- a/.github/workflows/deploy_documentation.yml +++ b/.github/workflows/deploy_documentation.yml @@ -10,20 +10,21 @@ concurrency: cancel-in-progress: true jobs: build: + name: Build Documentation runs-on: macos-14 steps: - name: Checkout uses: actions/checkout@v4 - with: - submodules: recursive - name: Setup Pages uses: actions/configure-pages@v4 - name: Build Documentation run: | + set -o pipefail &&\ xcodebuild docbuild\ -scheme Runestone\ -destination 'generic/platform=iOS'\ - -derivedDataPath ../DerivedData + -derivedDataPath ../DerivedData\ + | xcbeautify --renderer github-actions - name: Process Archive run: | mkdir _site @@ -48,6 +49,7 @@ jobs: - name: Upload Artifact uses: actions/upload-pages-artifact@v3 deploy: + name: Deploy Documentation environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} diff --git a/.github/workflows/swiftlint.yml b/.github/workflows/swiftlint.yml index 16c0febe..9107f711 100644 --- a/.github/workflows/swiftlint.yml +++ b/.github/workflows/swiftlint.yml @@ -9,7 +9,8 @@ jobs: SwiftLint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - name: Checkout + uses: actions/checkout@v4 - name: Run SwiftLint uses: norio-nomura/action-swiftlint@3.2.1 with: