| name: Build libc Container | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - .github/workflows/build-libc-container.yml | |
| - '.github/workflows/containers/libc/**' | |
| pull_request: | |
| paths: | |
| - .github/workflows/build-libc-container.yml | |
| - '.github/workflows/containers/libc/**' | |
| jobs: | |
| build-libc-container: | |
| name: Build libc container | |
| if: github.repository_owner == 'llvm' | |
| runs-on: ${{ matrix.runs-on }} | |
| strategy: | |
| matrix: | |
| runs-on: | |
| - ubuntu-24.04 | |
| - ubuntu-24.04-arm | |
| steps: | |
| - name: Checkout LLVM | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: | | |
| .github/workflows/containers/libc/ | |
| .github/actions/build-container | |
| - name: Build Container | |
| uses: ./.github/actions/build-container | |
| with: | |
| container-name: libc-ubuntu-26.04 | |
| dockerfile: .github/workflows/containers/libc/Dockerfile | |
| target: '' | |
| test-command: ${{ matrix.test-command }} | |
| push-libc-container: | |
| if: github.event_name == 'push' | |
| needs: | |
| - build-libc-container | |
| permissions: | |
| packages: write | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout LLVM | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| sparse-checkout: | | |
| .github/actions/push-container | |
| - uses: ./.github/actions/push-container | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} |