mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 17:05:36 +01:00
Merge 'github: Remove Intel Mac support' from Pekka Enberg
They're very close to end of life and we're having macOS runner availability problems. Reviewed-by: Preston Thorpe <preston@turso.tech> Closes #2726
This commit is contained in:
73
.github/workflows/napi-sync.yml
vendored
73
.github/workflows/napi-sync.yml
vendored
@@ -26,9 +26,6 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- host: macos-13
|
||||
target: x86_64-apple-darwin
|
||||
build: yarn build --target x86_64-apple-darwin
|
||||
- host: windows-latest
|
||||
build: |
|
||||
yarn build --target x86_64-pc-windows-msvc
|
||||
@@ -113,38 +110,6 @@ jobs:
|
||||
sync/javascript/${{ env.APP_NAME }}.*.node
|
||||
sync/javascript/${{ env.APP_NAME }}.*.wasm
|
||||
if-no-files-found: error
|
||||
test-macOS-windows-binding:
|
||||
name: Test turso-sync-js on ${{ matrix.settings.target }} - node@${{ matrix.node }}
|
||||
needs:
|
||||
- build
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- host: macos-13
|
||||
target: x86_64-apple-darwin
|
||||
node:
|
||||
- "20"
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: turso-sync-js-${{ matrix.settings.target }}
|
||||
path: sync/javascript
|
||||
- name: List packages
|
||||
run: ls -R .
|
||||
shell: bash
|
||||
- name: Test turso-sync-js
|
||||
run: yarn test
|
||||
test-linux-x64-gnu-binding:
|
||||
name: Test turso-sync-js on Linux-x64-gnu - node@${{ matrix.node }}
|
||||
needs:
|
||||
@@ -173,42 +138,6 @@ jobs:
|
||||
shell: bash
|
||||
- name: Test turso-sync-js
|
||||
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
|
||||
universal-macOS:
|
||||
name: Build universal macOS binary
|
||||
needs:
|
||||
- build
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Download macOS x64 artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: turso-sync-js-x86_64-apple-darwin
|
||||
path: sync/javascript
|
||||
- name: Download macOS arm64 artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: turso-sync-js-aarch64-apple-darwin
|
||||
path: sync/javascript
|
||||
- name: List packages
|
||||
run: ls -R .
|
||||
shell: bash
|
||||
- name: Combine binaries
|
||||
run: yarn universal
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: turso-sync-js-universal-apple-darwin
|
||||
path: |
|
||||
sync/javascript/${{ env.APP_NAME }}.*.node
|
||||
sync/javascript${{ env.APP_NAME }}.*.wasm
|
||||
if-no-files-found: error
|
||||
publish:
|
||||
name: Publish
|
||||
runs-on: ubuntu-latest
|
||||
@@ -217,9 +146,7 @@ jobs:
|
||||
contents: read
|
||||
id-token: write
|
||||
needs:
|
||||
- test-macOS-windows-binding
|
||||
- test-linux-x64-gnu-binding
|
||||
- universal-macOS
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
|
||||
73
.github/workflows/napi.yml
vendored
73
.github/workflows/napi.yml
vendored
@@ -26,9 +26,6 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- host: macos-13
|
||||
target: x86_64-apple-darwin
|
||||
build: yarn build --target x86_64-apple-darwin
|
||||
- host: windows-latest
|
||||
build: |
|
||||
yarn build --target x86_64-pc-windows-msvc
|
||||
@@ -113,38 +110,6 @@ jobs:
|
||||
bindings/javascript/${{ env.APP_NAME }}.*.node
|
||||
bindings/javascript/${{ env.APP_NAME }}.*.wasm
|
||||
if-no-files-found: error
|
||||
test-macOS-windows-binding:
|
||||
name: Test bindings on ${{ matrix.settings.target }} - node@${{ matrix.node }}
|
||||
needs:
|
||||
- build
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
settings:
|
||||
- host: macos-13
|
||||
target: x86_64-apple-darwin
|
||||
node:
|
||||
- "20"
|
||||
runs-on: ${{ matrix.settings.host }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: ${{ matrix.node }}
|
||||
architecture: x64
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Download artifacts
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: bindings-${{ matrix.settings.target }}
|
||||
path: bindings/javascript
|
||||
- name: List packages
|
||||
run: ls -R .
|
||||
shell: bash
|
||||
- name: Test bindings
|
||||
run: yarn test
|
||||
test-linux-x64-gnu-binding:
|
||||
name: Test bindings on Linux-x64-gnu - node@${{ matrix.node }}
|
||||
needs:
|
||||
@@ -173,42 +138,6 @@ jobs:
|
||||
shell: bash
|
||||
- name: Test bindings
|
||||
run: docker run --rm -v $(pwd):/build -w /build node:${{ matrix.node }}-slim yarn test
|
||||
universal-macOS:
|
||||
name: Build universal macOS binary
|
||||
needs:
|
||||
- build
|
||||
runs-on: macos-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 20
|
||||
- name: Install dependencies
|
||||
run: yarn install
|
||||
- name: Download macOS x64 artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: bindings-x86_64-apple-darwin
|
||||
path: bindings/javascript
|
||||
- name: Download macOS arm64 artifact
|
||||
uses: actions/download-artifact@v4
|
||||
with:
|
||||
name: bindings-aarch64-apple-darwin
|
||||
path: bindings/javascript
|
||||
- name: List packages
|
||||
run: ls -R .
|
||||
shell: bash
|
||||
- name: Combine binaries
|
||||
run: yarn universal
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: bindings-universal-apple-darwin
|
||||
path: |
|
||||
bindings/javascript/${{ env.APP_NAME }}.*.node
|
||||
bindings/javascript/${{ env.APP_NAME }}.*.wasm
|
||||
if-no-files-found: error
|
||||
publish:
|
||||
name: Publish
|
||||
runs-on: ubuntu-latest
|
||||
@@ -217,9 +146,7 @@ jobs:
|
||||
contents: read
|
||||
id-token: write
|
||||
needs:
|
||||
- test-macOS-windows-binding
|
||||
- test-linux-x64-gnu-binding
|
||||
- universal-macOS
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup node
|
||||
|
||||
31
.github/workflows/python.yml
vendored
31
.github/workflows/python.yml
vendored
@@ -110,35 +110,6 @@ jobs:
|
||||
name: wheels-linux
|
||||
path: bindings/python/dist
|
||||
|
||||
macos-x86_64:
|
||||
runs-on: macos-13
|
||||
defaults:
|
||||
run:
|
||||
working-directory: ${{ env.working-directory }}
|
||||
strategy:
|
||||
matrix:
|
||||
target: [x86_64]
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.10'
|
||||
- name: Build wheels
|
||||
uses: PyO3/maturin-action@v1
|
||||
env:
|
||||
CXX: clang++
|
||||
CC: clang
|
||||
with:
|
||||
working-directory: ${{ env.working-directory }}
|
||||
target: ${{ matrix.target }}
|
||||
args: --release --out dist --find-interpreter
|
||||
sccache: 'true'
|
||||
- name: Upload wheels
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: wheels-macos-x86
|
||||
path: bindings/python/dist
|
||||
|
||||
macos-arm64:
|
||||
runs-on: macos-14
|
||||
defaults:
|
||||
@@ -191,7 +162,7 @@ jobs:
|
||||
name: Release
|
||||
runs-on: blacksmith-4vcpu-ubuntu-2404
|
||||
if: "startsWith(github.ref, 'refs/tags/')"
|
||||
needs: [linux, macos-arm64, macos-x86_64, sdist]
|
||||
needs: [linux, macos-arm64, sdist]
|
||||
steps:
|
||||
- uses: actions/download-artifact@v4
|
||||
with:
|
||||
|
||||
Reference in New Issue
Block a user