Release #214
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 Release | |
on: | |
schedule: | |
# Run every Monday at 12:00 | |
- cron: 0 12 * * 1 | |
workflow_dispatch: | |
push: | |
tags: | |
- "*" | |
env: | |
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK | |
jobs: | |
dist: | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- os: windows-latest-8-cores | |
target: x86_64-pc-windows-msvc | |
- os: ubuntu-2004-8-cores | |
target: x86_64-unknown-linux-gnu | |
- os: macos-12-large | |
target: x86_64-apple-darwin | |
- os: macos-13-xlarge | |
target: aarch64-apple-darwin | |
name: Build release (${{ matrix.target }}) | |
runs-on: ${{ matrix.os }} | |
container: ${{ matrix.container }} | |
env: | |
DIST_TARGET_TRIPLE: ${{ matrix.target }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Rust toolchain | |
uses: dtolnay/[email protected] | |
with: | |
targets: ${{ matrix.target }} | |
- uses: extractions/setup-just@v1 | |
with: | |
just-version: "1.23.0" | |
- name: Build | |
run: just dist | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist-${{ matrix.target }} | |
path: ./target/dist/ | |
- name: Post to slack | |
uses: slackapi/[email protected] | |
if: ${{ always() }} | |
with: | |
payload: | | |
{ | |
"text": "Build release binary result (${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | |
} | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
needs: ["dist"] | |
steps: | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist-aarch64-apple-darwin | |
path: dist | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist-x86_64-apple-darwin | |
path: dist | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist-x86_64-unknown-linux-gnu | |
path: dist | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist-x86_64-pc-windows-msvc | |
path: dist | |
- run: ls -al ./dist | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v3 | |
with: | |
name: releases | |
path: ./dist | |
- name: Post to slack | |
uses: slackapi/[email protected] | |
if: ${{ always() }} | |
with: | |
payload: | | |
{ | |
"text": "Publish release binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | |
} |