fix: use a dedicated section for stack #476
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| branches: ["main"] | |
| permissions: {} | |
| defaults: | |
| run: | |
| shell: bash -euo pipefail {0} | |
| jobs: | |
| build-linux: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v5.0.4 | |
| with: | |
| path: | | |
| ~/.cache/org.swift.swiftpm | |
| ~/.swiftpm | |
| .build | |
| key: ${{ runner.os }}-swiftpm-${{ hashFiles('Package.resolved') }} | |
| restore-keys: ${{ runner.os }}-swiftpm- | |
| - run: ./scripts/ci-install-swift.sh | |
| - run: swift --version | |
| - run: swift build -c release --triple aarch64-none-none-elf --toolset toolset.json | |
| build-macos: | |
| runs-on: macos-26 | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - run: ./scripts/ci-install-swift.sh | |
| - run: swift --version | |
| - run: swift build -c release --triple aarch64-none-none-elf --toolset toolset.json | |
| lint: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - run: ./scripts/ci-install-swift.sh | |
| - run: swift --version | |
| - run: swift format lint -rsp . | |
| yamllint: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - run: yamllint --version | |
| - run: yamllint --strict --config-file .yamllint.yml . | |
| shellcheck: | |
| runs-on: ubuntu-24.04-arm | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - run: shellcheck -V | |
| - run: git ls-files -z '*.sh' | xargs -0 --no-run-if-empty shellcheck -x | |
| results: | |
| if: ${{ always() }} | |
| runs-on: ubuntu-24.04-arm | |
| needs: [build-linux, build-macos, lint, yamllint, shellcheck] | |
| steps: | |
| - run: exit 1 | |
| if: ${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }} |