Add the gojsonnet binding #950
Workflow file for this run
This file contains 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: build | |
on: | |
pull_request: | |
push: | |
branches: [main, test-me-*] | |
concurrency: | |
# serialize runs on the default branch | |
group: ${{ github.event_name == 'push' && github.workflow || github.sha }} | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
container: ghcr.io/getsentry/pypi-manylinux-amd64-ci | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python3 -um build --pypi-url https://pypi.devinfra.sentry.io | |
- run: python3 -um validate --index-url https://pypi.devinfra.sentry.io/simple | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist-linux | |
path: dist/* | |
macos: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: python3 -u docker/install-pythons --dest pythons | |
- run: | | |
echo "$PWD/pythons/cp38-cp38/bin" >> "$GITHUB_PATH" | |
echo "$PWD/pythons/cp39-cp39/bin" >> "$GITHUB_PATH" | |
echo "$PWD/pythons/cp310-cp310/bin" >> "$GITHUB_PATH" | |
echo "$PWD/pythons/cp311-cp311/bin" >> "$GITHUB_PATH" | |
echo "$PWD/venv/bin" >> "$GITHUB_PATH" | |
- run: python3 -um venv venv && pip install -r docker/requirements.txt | |
- run: python3 -um build --pypi-url https://pypi.devinfra.sentry.io | |
- run: python3 -um validate --index-url https://pypi.devinfra.sentry.io/simple | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist-macos | |
path: dist/* | |
cirrus: | |
if: github.event_name != 'pull_request' | |
strategy: | |
matrix: | |
task: [macos-arm64, linux-arm64] | |
runs-on: ubuntu-latest | |
permissions: | |
checks: read | |
steps: | |
- uses: getsentry/[email protected] | |
with: | |
task: ${{ matrix.task }} | |
timeout-minutes: 60 | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: dist-${{ matrix.task }} | |
path: dist/* | |
collect-and-deploy: | |
needs: [linux, macos, cirrus] | |
if: github.event_name != 'pull_request' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- run: pip install -r docker/requirements.txt | |
- uses: actions/download-artifact@v3 | |
with: | |
path: dist | |
- run: python3 -um make_index --pypi-url https://pypi.devinfra.sentry.io --dest index | |
- uses: google-github-actions/auth@v0 | |
with: | |
credentials_json: ${{ secrets.PYPI_DEVINFRA_SENTRY_IO }} | |
- run: yes | gcloud auth login --cred-file="$GOOGLE_APPLICATION_CREDENTIALS" | |
- run: python3 -uS bin/upload-artifacts |