[deno] add intermediate packages
build
#343
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 kernel images | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
release: | |
types: | |
- created | |
jobs: | |
base-linting: | |
name: base-linting | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Lint Dockerfile, Shell scripts, YAML | |
uses: github/super-linter@v4 | |
env: | |
DEFAULT_BRANCH: master | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Linters to enable | |
VALIDATE_BASH: true | |
VALIDATE_BASH_EXEC: true | |
VALIDATE_DOCKERFILE_HADOLINT: true | |
VALIDATE_YAML: true | |
run-hooks: | |
name: Run pre-commit hooks | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.x | |
- name: Install pre-commit | |
run: | | |
pip install --upgrade pip | |
pip install --upgrade pre-commit | |
- name: Run pre-commit hooks ✅ | |
run: pre-commit run --all-files --hook-stage manual | |
build_python_kernels: | |
runs-on: | |
group: ubuntu-22.04-8cpu-public | |
permissions: | |
id-token: write | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
version: ["3.9", "3.10"] # TODO: Add 3.11 after fixing dependency conflicts | |
identifier: [base, base-gpu] | |
env: | |
VERSION: ${{ matrix.version }} | |
TARGET: python_${VERSION//./_} | |
BUILD_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Task | |
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3 | |
with: | |
repo-token: ${{ github.token }} | |
- run: | | |
task python:base:copy-files IDENTIFIER="base" NBL_PYTHON_VERSION=${{ matrix.version }} | |
if [[ "${{ matrix.identifier }}" == "base-gpu" ]]; | |
then | |
task python:base:copy-files IDENTIFIER=${{ matrix.identifier }} NBL_PYTHON_VERSION=${{ matrix.version }} | |
fi | |
task python:noteable:copy-files IDENTIFIER=${{ matrix.identifier }} NBL_PYTHON_VERSION=${{ matrix.version }} | |
- run: scripts/set-variables.sh ${{ github.ref_name }} ${{ github.event_name }} ${{ github.event.pull_request.number }} | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Set target | |
id: target | |
run: | | |
if [[ "${{ matrix.identifier }}" == "base" ]] | |
then | |
target="python_${VERSION//./_}" | |
else | |
target="python_${VERSION//./_}_gpu" | |
fi | |
echo "TARGET=${target}" >> "$GITHUB_OUTPUT" | |
- uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1 | |
- name: Build python kernels | |
uses: docker/bake-action@f32f8b8d70bc284af19f8148dd14ad1d2fbc6c28 # v3.1.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
targets: ${{ steps.target.outputs.TARGET }} | |
build_rlang_kernels: | |
runs-on: ubuntu-22.04 | |
permissions: | |
id-token: write | |
packages: write | |
strategy: | |
matrix: | |
version: [4.3.0] | |
env: | |
VERSION: ${{ matrix.version }} | |
BUILD_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Task | |
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3 | |
with: | |
repo-token: ${{ github.token }} | |
- run: | | |
task r:base:copy-files NBL_LANGUAGE_VERSION=${{ matrix.version }} | |
- run: scripts/set-variables.sh ${{ github.ref_name }} ${{ github.event_name }} ${{ github.event.pull_request.number }} | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Set target | |
id: target | |
run: echo "TARGET=rlang_${VERSION//./_}" >> "$GITHUB_OUTPUT" | |
- uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1 | |
- name: Build kernels | |
uses: docker/bake-action@f32f8b8d70bc284af19f8148dd14ad1d2fbc6c28 # v3.1.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
targets: ${{ steps.target.outputs.TARGET }} | |
build_rust_kernels: | |
runs-on: ubuntu-22.04 | |
permissions: | |
id-token: write | |
packages: write | |
strategy: | |
matrix: | |
version: [1.70.0] | |
env: | |
VERSION: ${{ matrix.version }} | |
BUILD_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Task | |
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3 | |
with: | |
repo-token: ${{ github.token }} | |
- run: | | |
task rust:base:copy-files NBL_LANGUAGE_VERSION=${{ matrix.version }} | |
- run: scripts/set-variables.sh ${{ github.ref_name }} ${{ github.event_name }} ${{ github.event.pull_request.number }} | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Set target | |
id: target | |
run: echo "TARGET=rust_${VERSION//./_}" >> "$GITHUB_OUTPUT" | |
- uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1 | |
- name: Build kernels | |
uses: docker/bake-action@f32f8b8d70bc284af19f8148dd14ad1d2fbc6c28 # v3.1.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
targets: ${{ steps.target.outputs.TARGET }} | |
build_deno_kernels: | |
runs-on: ubuntu-22.04 | |
permissions: | |
id-token: write | |
packages: write | |
strategy: | |
matrix: | |
version: ["1.37"] | |
env: | |
VERSION: ${{ matrix.version }} | |
BUILD_URL: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} | |
GITHUB_SHA: ${{ github.event.pull_request.head.sha || github.sha }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Task | |
uses: arduino/setup-task@e26d8975574116b0097a1161e0fe16ba75d84c1c # v1.0.3 | |
with: | |
repo-token: ${{ github.token }} | |
- run: | | |
task deno:base:copy-files NBL_LANGUAGE_VERSION=${{ matrix.version }} | |
- run: scripts/set-variables.sh ${{ github.ref_name }} ${{ github.event_name }} ${{ github.event.pull_request.number }} | |
- uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.actor }} | |
password: ${{ github.token }} | |
- name: Set target | |
id: target | |
run: echo "TARGET=deno_${VERSION//./_}" >> "$GITHUB_OUTPUT" | |
- uses: docker/setup-buildx-action@4c0219f9ac95b02789c1075625400b2acbff50b1 # v2.9.1 | |
- name: Build kernels | |
uses: docker/bake-action@f32f8b8d70bc284af19f8148dd14ad1d2fbc6c28 # v3.1.0 | |
with: | |
push: ${{ github.event_name != 'pull_request' }} | |
targets: ${{ steps.target.outputs.TARGET }} |