Skip to content

Commit

Permalink
minor adjustments + test branch
Browse files Browse the repository at this point in the history
  • Loading branch information
greyscaled committed Feb 2, 2024
1 parent d287fe0 commit b87ecf2
Showing 1 changed file with 34 additions and 37 deletions.
71 changes: 34 additions & 37 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Release
name: Atomic Build and Release

on:
schedule:
Expand All @@ -8,20 +8,22 @@ on:
push:
tags:
- "*"
branches:
- tycho/release-atomically

env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
group: release-${{ github.ref }}
cancel-in-progress: true

jobs:
atomic-release:
# This creates a node in the DAG so that all of the "push" tasks
# can depend on all build tasks.
name: Atomic Release Release
name: Atomic Release
runs-on: ubuntu-latest
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
needs:
Expand All @@ -33,11 +35,11 @@ jobs:
steps:
- run: sleep 1

########################################################################
##
## Kernel Release
##
########################################################################
########################################################################
##
## Kernel Release
##
########################################################################

kernel-dist:
strategy:
Expand Down Expand Up @@ -81,14 +83,13 @@ jobs:
with:
payload: |
{
"text": "Build release binary result (${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Build Kernel Binary (${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
docker-push:
name: Build and Push Docker Image
runs-on: ubuntu-latest-8-cores
needs: atomic-release
needs: [atomic-release]
permissions:
id-token: write # required to use OIDC auth
contents: write # required to checkout code
Expand All @@ -107,7 +108,6 @@ jobs:
- run: ./scripts/build-and-push-images.sh
# TODO: this should pull the binary that was built in kernel-dist.


kernel-push:
name: Push Kernel Release
runs-on: ubuntu-latest
Expand Down Expand Up @@ -141,14 +141,14 @@ jobs:
with:
payload: |
{
"text": "Publish release binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Publish Kernal Binary: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
########################################################################
##
## Python Bindings
##
########################################################################
########################################################################
##
## Python Bindings
##
########################################################################

python-linux:
name: Build Python Bindings (linux ${{ matrix.target }})
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
with:
payload: |
{
"text": "Python bindings build result (linux ${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Build Python Bindings (linux ${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
python-windows:
Expand Down Expand Up @@ -237,10 +237,9 @@ jobs:
with:
payload: |
{
"text": "Python bindings build result (windows ${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Build Python Bindings (windows ${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
python-macos:
name: Build Python Bindings (macos ${{ matrix.config.target }})
runs-on: ${{ matrix.config.runner }}
Expand All @@ -250,10 +249,10 @@ jobs:
fail-fast: true
matrix:
config:
- target: x86_64-apple-darwin
runner: macos-13-large
- target: aarch64-apple-darwin
runner: macos-13-xlarge
- target: x86_64-apple-darwin
runner: macos-13-large
- target: aarch64-apple-darwin
runner: macos-13-xlarge
env:
PYTHON_VERSION: "3.11"
MATURIN_VERSION: "1.4.0"
Expand Down Expand Up @@ -285,10 +284,9 @@ jobs:
with:
payload: |
{
"text": "Python bindings build result (macos ${{ matrix.config.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Build Python Bindings (macos ${{ matrix.config.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
python-push:
name: Push Python Bindings
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
Expand Down Expand Up @@ -318,14 +316,14 @@ jobs:
with:
payload: |
{
"text": "Python bindings publish result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Push Python Bindings: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
########################################################################
##
## Node.js Release Process
##
########################################################################
########################################################################
##
## Node.js Release Process
##
########################################################################

node-build:
permissions:
Expand Down Expand Up @@ -446,10 +444,9 @@ jobs:
with:
payload: |
{
"text": "Node.js bindings build result (${{ matrix.settings.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Build Node.JS Bindings (stable - ${{ matrix.settings.target }} - node@18): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}
node-push:
name: Push Node.js Bindings
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags/v')
Expand Down Expand Up @@ -498,5 +495,5 @@ jobs:
with:
payload: |
{
"text": "Node.js bindings publish result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
"text": "Push Node.js Bindings: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
}

0 comments on commit b87ecf2

Please sign in to comment.