From 12b588c6d69ff674c3a39b291728bbbb48558c70 Mon Sep 17 00:00:00 2001 From: Paul Chavard Date: Tue, 7 May 2024 10:53:57 +0200 Subject: [PATCH] chore(bun): update bun and cross-compile for all platforms --- .github/workflows/build.yml | 50 +++++++++--------------------------- .gitignore | 4 ++- bun.lockb | Bin 77257 -> 78444 bytes package.json | 22 ++++++++-------- 4 files changed, 27 insertions(+), 49 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e3303e8..29195da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,54 +1,28 @@ name: Build CLI -on: +on: push: tags: - - '*' + - "*" jobs: release: runs-on: ubuntu-latest - needs: [build-linux, build-macos] permissions: contents: write steps: - - name: Download Linux build - uses: actions/download-artifact@v3 - with: - name: ds-api-client-linux - - name: Download macOS build - uses: actions/download-artifact@v3 - with: - name: ds-api-client-macos + - uses: actions/checkout@v4 + - uses: oven-sh/setup-bun@v1 + - run: bun install + - name: Build for Linux + run: bun run compile:linux + - name: Build for macOS + run: bun run compile:darwin + - name: Build for windows + run: bun run compile:windows - name: Release uses: ncipollo/release-action@v1 with: generateReleaseNotes: true - artifacts: "ds-api-client-linux, ds-api-client-macos" + artifacts: "ds-api-client-linux-x64, ds-api-client-darwin-arm64, ds-api-client.exe" artifactErrorsFailBuild: true - build-linux: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: oven-sh/setup-bun@v1 - - run: bun install - - run: bun run compile - - run: mv ds-api-client ds-api-client-linux - - name: Upload Linux build - uses: actions/upload-artifact@v3 - with: - name: ds-api-client-linux - path: ds-api-client-linux - build-macos: - runs-on: macos-latest - steps: - - uses: actions/checkout@v3 - - uses: oven-sh/setup-bun@v1 - - run: bun install - - run: bun run compile - - run: mv ds-api-client ds-api-client-macos - - name: Upload macOS build - uses: actions/upload-artifact@v3 - with: - name: ds-api-client-macos - path: ds-api-client-macos diff --git a/.gitignore b/.gitignore index 8b068ad..7cbc7ba 100644 --- a/.gitignore +++ b/.gitignore @@ -169,4 +169,6 @@ dist .pnp.\* data -ds-api-client +/ds-api-client.exe +/ds-api-client-darwin-arm64 +/ds-api-client-linux-x64 diff --git a/bun.lockb b/bun.lockb index e1078f0ebb3fbd5ab9b2ee6b331fe0574b4f1c13..ce80785493eabb9fc487c6a25c57356ca3fd49bc 100755 GIT binary patch delta 10924 zcmbU{2~-r}`GsNjkUrA7cy%MwhWwF(QyF9f+gl#{=jnvw{XgRNyUODHQr8TD(-WwKU)A1PRQ zCFr9(3yd@cd>=4Il?{BTYD@*(4Dfrf52AGA2p~`p3j!W+GStTKb~k2*`U2kp%9+5& zKt=&Z1K)xi>-7N)D#lkr0De$t4rNck=(rVNY*2h`^4C+RfGvUl0_?cT(q+a|&Z?Ywmr0WXEtq26Ah z+*pvmg|0`Ih0ZR8-YJq(DM}d^)Oj+Qr-fL`MN;L6pr5czAR`07`YC9%vTgN z27UGdj4`zbjMj;7$#X@5qQy_YFQ2)3+}W`?Uc<88cXscpoTxwcN8}It$Pmlf3YZZx zb28VmJuzyOL}_Kob%#<%a>&v`)f$#pA20;VsmxO3awABll|i{2WRMFZM{JwwxD!OF zGALVtVi53T#8#zK#z;$CJ}C!{v%njG7D=VGPT2*P;1Fg5^i!b}03|DGaVIIaHgIM{ zX=6|($z?JxYK!O6%9z@ufR5qn?a}!8rQv3-LTwF-Q0Uwsa;j;7A`>V*rH%siB~nTo$R6|%MhAZSl1w{;*&=K5ThlD5Zxf@h%L?Uf<3J(}_fz)^cP+w4L3s6BM+ea_|B*YW&Yt=w84{p%a-B8UerWpFqHISf(SY%ZFFwlF9bL77QPfl8n{ZZJTHP--?%EH!(8>P30)KT!i=K(k@VjwskB}Ul5hMUJeB03*rERwppQrJ)b4>JD?cv3Q)tS zU7yxsf+qqML9$!u17g?PH_)P8lv(D zP}sp@)q^@42o%%6$+wtaa&RsauXlU;z~3Q)a>3IN609p%0L!0*x1%i9e>VRRdomm-HbQbJ4~GK~kOW6P*OBHftfSab3xH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