mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 14:34:04 +00:00
ci: simpler solution to race conditions, proper os/arch matrix
This commit is contained in:
parent
59e9590219
commit
cf0a8cae84
1 changed files with 16 additions and 8 deletions
24
.github/workflows/extensions.yml
vendored
24
.github/workflows/extensions.yml
vendored
|
|
@ -13,14 +13,21 @@ jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
include:
|
||||||
max-parallel: 1
|
- os: ubuntu-latest
|
||||||
|
arch: X64
|
||||||
|
- os: ubuntu-arm64-latest
|
||||||
|
arch: ARM64
|
||||||
|
- os: windows-latest
|
||||||
|
arch: X64
|
||||||
|
- os: macos-latest
|
||||||
|
arch: X64
|
||||||
|
- os: macos-latest-xlarge
|
||||||
|
arch: ARM64
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: Download SQLite headers (Unix)
|
- name: Download SQLite headers (Unix)
|
||||||
if: runner.os != 'Windows'
|
if: runner.os != 'Windows'
|
||||||
|
|
@ -36,14 +43,15 @@ jobs:
|
||||||
Copy-Item sqlite-amalgamation-3470200\sqlite3ext.h .
|
Copy-Item sqlite-amalgamation-3470200\sqlite3ext.h .
|
||||||
|
|
||||||
- name: Build C files
|
- name: Build C files
|
||||||
run: cd extensions && make
|
run: cd extensions && make VERBOSE=1
|
||||||
|
|
||||||
- name: Commit output files
|
- name: Commit output files
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: |
|
run: |
|
||||||
cd extensions
|
cd extensions
|
||||||
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
git config --local user.email "github-actions[bot]@users.noreply.github.com"
|
||||||
git config --local user.name "github-actions[bot]"
|
git config --local user.name "github-actions[bot]"
|
||||||
git add lib/
|
git add lib/
|
||||||
git commit -m "Auto-build: Update output files" || echo "No changes to commit"
|
git commit -m "Auto-build: Update output files [skip ci]" || echo "No changes to commit"
|
||||||
git push
|
for attempt in {1..3}; do
|
||||||
|
git pull --rebase && git push && break || sleep 5
|
||||||
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue