mirror of
https://github.com/anomalyco/opentui.git
synced 2026-09-19 01:26:03 +08:00
.github/workflows: Migrate workflows to Blacksmith runners (#1159)
Co-authored-by: Simon Klee <hello@simonklee.dk>
This commit is contained in:
committed by
GitHub
parent
3319778416
commit
4c9a82793b
@@ -15,7 +15,7 @@ env:
|
||||
jobs:
|
||||
bench-native-smoke:
|
||||
name: Native Benchmark Smoke
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
timeout-minutes: 15
|
||||
|
||||
steps:
|
||||
|
||||
@@ -17,7 +17,7 @@ env:
|
||||
jobs:
|
||||
build:
|
||||
name: Build Native Libraries
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v6
|
||||
@@ -54,11 +54,11 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
- os: macos-latest
|
||||
- os: blacksmith-12vcpu-macos-15
|
||||
platform: darwin-arm64
|
||||
- os: ubuntu-latest
|
||||
- os: blacksmith-8vcpu-ubuntu-2404
|
||||
platform: linux-x64
|
||||
- os: windows-latest
|
||||
- os: blacksmith-8vcpu-windows-2025
|
||||
platform: win32-x64
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
@@ -128,7 +128,7 @@ jobs:
|
||||
build-complete:
|
||||
name: Core - Build and Test
|
||||
needs: [test]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check test results
|
||||
|
||||
@@ -14,7 +14,7 @@ permissions:
|
||||
jobs:
|
||||
build-examples:
|
||||
name: Build Example Executables
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
name: Test (${{ matrix.os }})
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [blacksmith-8vcpu-ubuntu-2404, blacksmith-8vcpu-windows-2025]
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
@@ -61,7 +61,7 @@ jobs:
|
||||
|
||||
packed-consumer:
|
||||
name: Packed Consumer Smoke
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@@ -105,7 +105,7 @@ jobs:
|
||||
build-complete:
|
||||
name: Keymap - Build and Test
|
||||
needs: [test, packed-consumer]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check test results
|
||||
|
||||
@@ -18,7 +18,7 @@ env:
|
||||
jobs:
|
||||
build-native:
|
||||
name: Build Native Libraries
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -20,7 +20,7 @@ jobs:
|
||||
name: Test (${{ matrix.os }})
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [blacksmith-8vcpu-ubuntu-2404, blacksmith-8vcpu-windows-2025]
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
build-complete:
|
||||
name: QRCode - Build and Test
|
||||
needs: [test]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check test results
|
||||
|
||||
@@ -17,7 +17,7 @@ jobs:
|
||||
name: Test (${{ matrix.os }})
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [blacksmith-8vcpu-ubuntu-2404, blacksmith-8vcpu-windows-2025]
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
@@ -62,7 +62,7 @@ jobs:
|
||||
build-complete:
|
||||
name: React - Build and Test
|
||||
needs: [test]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check test results
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
name: Bun Test (${{ matrix.os }})
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest]
|
||||
os: [blacksmith-8vcpu-ubuntu-2404, blacksmith-8vcpu-windows-2025]
|
||||
runs-on: ${{ matrix.os }}
|
||||
defaults:
|
||||
run:
|
||||
@@ -58,7 +58,7 @@ jobs:
|
||||
|
||||
node-source:
|
||||
name: Node Source Lane
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@@ -98,7 +98,7 @@ jobs:
|
||||
|
||||
packed-consumer:
|
||||
name: Packed Consumer Smoke
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
defaults:
|
||||
run:
|
||||
shell: bash
|
||||
@@ -140,7 +140,7 @@ jobs:
|
||||
build-complete:
|
||||
name: Solid - Build and Test
|
||||
needs: [bun-test, node-source, packed-consumer]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
steps:
|
||||
- name: Check test results
|
||||
|
||||
@@ -12,7 +12,7 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-8vcpu-ubuntu-2404
|
||||
steps:
|
||||
- name: Checkout your repository using git
|
||||
uses: actions/checkout@v6
|
||||
@@ -25,7 +25,7 @@ jobs:
|
||||
|
||||
deploy:
|
||||
needs: build
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
environment:
|
||||
name: github-pages
|
||||
url: ${{ steps.deployment.outputs.page_url }}
|
||||
|
||||
@@ -10,7 +10,7 @@ permissions:
|
||||
jobs:
|
||||
fmt:
|
||||
name: Format Check
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
lint:
|
||||
name: Lint Check
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -56,7 +56,7 @@ jobs:
|
||||
checks-complete:
|
||||
name: Format and Lint
|
||||
needs: [fmt, lint]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: always()
|
||||
|
||||
steps:
|
||||
|
||||
@@ -11,7 +11,7 @@ jobs:
|
||||
github.event.issue.state == 'open' &&
|
||||
github.event.comment.body == '/fmt' &&
|
||||
contains(fromJson('["OWNER","MEMBER"]'), github.event.comment.author_association)
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
contents: write
|
||||
issues: write
|
||||
|
||||
@@ -24,7 +24,7 @@ env:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-6vcpu-macos-15
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -14,7 +14,7 @@ env:
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
startsWith(github.event.comment.body, '/oc') ||
|
||||
contains(github.event.comment.body, ' /opencode') ||
|
||||
startsWith(github.event.comment.body, '/opencode'))
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
|
||||
@@ -18,7 +18,7 @@ jobs:
|
||||
(contains(github.event.comment.body, ' /pkg-preview') ||
|
||||
startsWith(github.event.comment.body, '/pkg-preview')) &&
|
||||
contains(fromJson('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association)
|
||||
runs-on: macos-latest
|
||||
runs-on: blacksmith-12vcpu-macos-15
|
||||
steps:
|
||||
- name: Checkout PR branch
|
||||
uses: actions/checkout@v6
|
||||
|
||||
@@ -15,7 +15,7 @@ jobs:
|
||||
# Extract version and check if it's a dry run
|
||||
prepare:
|
||||
name: Prepare Release
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
outputs:
|
||||
version: ${{ steps.extract.outputs.version }}
|
||||
fullTag: ${{ steps.extract.outputs.fullTag }}
|
||||
@@ -57,7 +57,7 @@ jobs:
|
||||
validate-version:
|
||||
name: Validate Version
|
||||
needs: prepare
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
@@ -131,7 +131,7 @@ jobs:
|
||||
sign-windows-artifacts:
|
||||
name: Sign Windows DLL Artifacts
|
||||
needs: [prepare, build-native]
|
||||
runs-on: windows-2025-vs2026
|
||||
runs-on: blacksmith-8vcpu-windows-2025
|
||||
permissions:
|
||||
id-token: write
|
||||
contents: read
|
||||
@@ -291,7 +291,7 @@ jobs:
|
||||
github-release:
|
||||
name: Create GitHub Release
|
||||
needs: [prepare, build-examples, npm-publish]
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
|
||||
steps:
|
||||
- name: Checkout code
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
github.event.issue.pull_request &&
|
||||
startsWith(github.event.comment.body, '/review') &&
|
||||
contains(fromJson('["OWNER","MEMBER"]'), github.event.comment.author_association)
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
permissions:
|
||||
contents: read
|
||||
issues: write
|
||||
|
||||
Reference in New Issue
Block a user