Compare commits

...

3 Commits

Author SHA1 Message Date
Ashcon Partovi
bedfae0b38 Change windows as well 2024-02-20 11:22:55 -08:00
Ashcon Partovi
65507ed30c Ensure action is run when workflow file is modified 2024-02-20 10:32:30 -08:00
Ashcon Partovi
66de4e5ee9 Change GitHub runners to use Ubicloud 2024-02-20 10:17:11 -08:00
10 changed files with 86 additions and 63 deletions

View File

@@ -6,12 +6,13 @@ on:
push:
paths:
- "docs/**"
branches: [main]
branches:
- main
jobs:
deploy:
name: Deploy site
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
if: github.repository_owner == 'oven-sh'
steps:
- name: Trigger Vercel build

View File

@@ -9,12 +9,12 @@ on:
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-linux-aarch64.yml"
@@ -22,16 +22,15 @@ on:
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-linux-aarch64.yml"
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
@@ -48,7 +47,7 @@ jobs:
tag: linux-aarch64
arch: aarch64
build_arch: arm64
runner: linux-arm64
runner: ubicloud-standard-16-arm
build_machine_arch: aarch64
steps:
- uses: actions/checkout@v3

View File

@@ -9,27 +9,28 @@ on:
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-linux-build.yml"
pull_request:
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
# Allows you to run this workflow manually from the Actions tab
- ".github/workflows/bun-linux-build.yml"
workflow_dispatch:
jobs:
@@ -47,7 +48,7 @@ jobs:
tag: linux-x64
arch: x86_64
build_arch: amd64
runner: big-ubuntu
runner: ubicloud-standard-16
build_machine_arch: x86_64
assertions: "OFF"
zig_optimize: "ReleaseFast"
@@ -56,7 +57,7 @@ jobs:
tag: linux-x64-baseline
arch: x86_64
build_arch: amd64
runner: big-ubuntu
runner: ubicloud-standard-16
build_machine_arch: x86_64
assertions: "OFF"
zig_optimize: "ReleaseFast"
@@ -65,7 +66,7 @@ jobs:
# tag: linux-x64-assertions
# arch: x86_64
# build_arch: amd64
# runner: big-ubuntu
# runner: ubicloud-standard-16
# build_machine_arch: x86_64
# assertions: "ON"
# zig_optimize: "ReleaseSafe"
@@ -74,7 +75,7 @@ jobs:
# tag: linux-x64-baseline-assertions
# arch: x86_64
# build_arch: amd64
# runner: big-ubuntu
# runner: ubicloud-standard-16
# build_machine_arch: x86_64
# assertions: "ON"
# zig_optimize: "ReleaseSafe"
@@ -208,7 +209,7 @@ jobs:
[Commit ${{github.sha}}](https://github.com/oven-sh/bun/commits/${{github.sha}})
linux-test:
name: Tests ${{matrix.tag}}
runs-on: ubuntu-latest
runs-on: ubicloud-standard-16
needs: [linux]
if: github.event_name == 'pull_request'
timeout-minutes: 20

View File

@@ -10,34 +10,37 @@ env:
on:
push:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-mac-aarch64.yml"
pull_request:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
# Allows you to run this workflow manually from the Actions tab
- ".github/workflows/bun-mac-aarch64.yml"
workflow_dispatch:
jobs:
macOS-zig:
name: macOS Zig Object
runs-on: med-ubuntu
runs-on: ubicloud-standard-16
if: github.repository_owner == 'oven-sh'
strategy:
matrix:

View File

@@ -10,34 +10,37 @@ env:
on:
push:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-mac-x64-baseline.yml"
pull_request:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
# Allows you to run this workflow manually from the Actions tab
- ".github/workflows/bun-mac-x64-baseline.yml"
workflow_dispatch:
jobs:
macos-object-files:
name: macOS Object
runs-on: med-ubuntu
runs-on: ubicloud-standard-16
if: github.repository_owner == 'oven-sh'
strategy:
matrix:

View File

@@ -10,34 +10,37 @@ env:
on:
push:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-mac-x64.yml"
pull_request:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
# Allows you to run this workflow manually from the Actions tab
- ".github/workflows/bun-mac-x64.yml"
workflow_dispatch:
jobs:
macOS-zig:
name: macOS Zig Object
runs-on: med-ubuntu
runs-on: ubicloud-standard-16
if: github.repository_owner == 'oven-sh'
strategy:
matrix:

View File

@@ -42,7 +42,7 @@ on:
jobs:
sign:
name: Sign Release
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
if: ${{ github.repository_owner == 'oven-sh' }}
permissions:
contents: write
@@ -71,7 +71,7 @@ jobs:
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
npm:
name: Release to NPM
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
needs: sign
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-npm == 'true' }}
permissions:
@@ -95,7 +95,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
npm-types:
name: Release types to NPM
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
needs: sign
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-types == 'true' }}
permissions:
@@ -148,7 +148,7 @@ jobs:
token: ${{ secrets.NPM_TOKEN }}
docker:
name: Release to Dockerhub
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
needs: sign
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-docker == 'true' }}
permissions:
@@ -209,7 +209,7 @@ jobs:
BUN_VERSION=${{ env.BUN_VERSION }}
homebrew:
name: Release to Homebrew
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
needs: sign
permissions:
contents: read
@@ -242,7 +242,7 @@ jobs:
commit_author: robobun <robobun@oven.sh>
s3:
name: Upload to S3
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
needs: sign
if: ${{ github.event_name != 'workflow_dispatch' || github.event.inputs.use-s3 == 'true' }}
permissions:

View File

@@ -11,7 +11,7 @@ on:
jobs:
tests:
name: type-tests
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
defaults:
run:
working-directory: packages/bun-types

View File

@@ -16,44 +16,45 @@ env:
on:
push:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
- ".github/workflows/bun-windows.yml"
pull_request:
branches: [main]
branches:
- main
paths:
- "*.zig"
- "src/**/*"
- "test/**/*"
- "packages/bun-usockets/src/**/*"
- "packages/bun-uws/src/**/*"
- "CMakeLists.txt"
- "build.zig"
- "Makefile"
- "Dockerfile"
# Allows you to run this workflow manually from the Actions tab
- ".github/workflows/bun-windows.yml"
workflow_dispatch:
# inputs:
# is-canary:
# type: boolean
# description: Is Canary Build?
# default: true
jobs:
windows-zig:
strategy:
fail-fast: false
matrix:
cpu: [haswell, nehalem]
arch: [x86_64]
cpu:
- haswell
- nehalem
arch:
- x86_64
name: Zig Build
runs-on: med-ubuntu
runs-on: ubicloud-standard-16
timeout-minutes: 60
if: github.repository_owner == 'oven-sh'
steps:
@@ -114,8 +115,11 @@ jobs:
strategy:
fail-fast: false
matrix:
cpu: [haswell, nehalem]
arch: [x86_64]
cpu:
- haswell
- nehalem
arch:
- x86_64
steps:
- run: git config --global core.autocrlf false && git config --global core.eol lf
- name: Checkout
@@ -185,13 +189,14 @@ jobs:
# yet released as it is the one *this* commit.
windows-codegen:
name: Codegen
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
timeout-minutes: 10
if: github.repository_owner == 'oven-sh'
strategy:
fail-fast: false
matrix:
arch: [x86_64]
arch:
- x86_64
steps:
- uses: actions/checkout@v4
- run: |
@@ -218,8 +223,11 @@ jobs:
strategy:
fail-fast: false
matrix:
cpu: [haswell, nehalem]
arch: [x86_64]
cpu:
- haswell
- nehalem
arch:
- x86_64
steps:
- run: git config --global core.autocrlf false && git config --global core.eol lf
- uses: actions/checkout@v4
@@ -272,8 +280,11 @@ jobs:
strategy:
fail-fast: false
matrix:
cpu: [haswell, nehalem]
arch: [x86_64]
cpu:
- haswell
- nehalem
arch:
- x86_64
name: Link
needs: [windows-dependencies, windows-codegen, windows-cpp, windows-zig]
runs-on: windows-small
@@ -392,8 +403,10 @@ jobs:
fail-fast: false
matrix:
# TODO: test baseline, disabled due to noise
cpu: [haswell]
arch: [x86_64]
cpu:
- haswell
arch:
- x86_64
steps:
- run: git config --global core.autocrlf false && git config --global core.eol lf
- id: checkout

View File

@@ -16,7 +16,7 @@ permissions:
jobs:
format:
name: format
runs-on: ubuntu-latest
runs-on: ubicloud-standard-2
steps:
- name: Checkout
uses: actions/checkout@v4