ci(bcr): remove the old workflow and cleanup new. #152
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: # yamllint disable rule:truthy | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "*.*.*" | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: macos-latest | |
| - os: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Test fetch | |
| run: bazel fetch //... | |
| - name: Test | |
| run: bazel test //... | |
| - name: Create release archive and notes | |
| # Set by GH actions, see | |
| # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables | |
| run: ./ci/package.sh "${{ github.ref_name }}" | |
| pkg: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - build | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Create release archive and notes | |
| # Set by GH actions, see | |
| # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables | |
| run: ./ci/package.sh "${{ github.ref_name }}" | |
| - name: Archive release artifacts | |
| uses: actions/upload-artifact@v6 | |
| with: | |
| name: release | |
| path: release/* | |
| retention-days: 5 |