Repository navigation
Modernization Phase 1.0: baseline & repo fixes (#20) #368
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: validate | |
| env: | |
| BRANCH_NAME: ${{ github.head_ref || github.ref_name }} | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| workflow_dispatch: | |
| concurrency: | |
| group: build-${{ github.head_ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| install-lint-test: | |
| strategy: | |
| # Let each platform report its true status: one platform's failure | |
| # must not cancel the others (the macOS legs are expected to fail | |
| # until the Phase 1.2 compiler upgrade lands; Linux is the gate). | |
| fail-fast: false | |
| matrix: | |
| os: [macos-14, macos-13, ubuntu-24.04, linux-arm64-runner] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| fetch-depth: 0 | |
| submodules: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: install | |
| uses: ./.github/workflows/reusable/cached-install | |
| - name: lint | |
| run: | |
| ./lint.sh | |
| shell: bash | |
| - name: test | |
| run: | |
| ./test.sh | |
| shell: bash | |
| # lint: | |
| # needs: install | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # fetch-depth: 0 | |
| # - name: install | |
| # uses: ./.github/workflows/reusable/cached-install | |
| # - name: lint | |
| # run: | |
| # ./lint.sh | |
| # shell: bash | |
| # test: | |
| # needs: install | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # with: | |
| # fetch-depth: 0 | |
| # - name: install | |
| # uses: ./.github/workflows/reusable/cached-install | |
| # - name: test | |
| # run: | |
| # ./test.sh | |
| # shell: bash |