feat: ajout d'un exe pour les cpu non avx2
This commit is contained in:
1 parent
9576ec9b23
commit
a358ee2d83
1 file changed
+10
-4
@@ -48,6 +48,12 @@ jobs:
|
|||||||
bun-target: bun-windows-x64
|
bun-target: bun-windows-x64
|
||||||
binary: binaries/fankarr.exe
|
binary: binaries/fankarr.exe
|
||||||
archive: fankarr-windows-x64.zip
|
archive: fankarr-windows-x64.zip
|
||||||
|
# Baseline pour les CPUs Windows anciens (sans AVX2, avant ~2013)
|
||||||
|
- target: windows-x64-baseline
|
||||||
|
os: windows-latest
|
||||||
|
bun-target: bun-windows-x64-baseline
|
||||||
|
binary: binaries/fankarr.exe
|
||||||
|
archive: fankarr-windows-x64-baseline.zip
|
||||||
- target: linux-x64
|
- target: linux-x64
|
||||||
os: ubuntu-latest
|
os: ubuntu-latest
|
||||||
bun-target: bun-linux-x64
|
bun-target: bun-linux-x64
|
||||||
@@ -90,13 +96,13 @@ jobs:
|
|||||||
path: public/
|
path: public/
|
||||||
|
|
||||||
- name: Build binary (Unix)
|
- name: Build binary (Unix)
|
||||||
if: matrix.target != 'windows-x64'
|
if: matrix.target != 'windows-x64' && matrix.target != 'windows-x64-baseline'
|
||||||
run: |
|
run: |
|
||||||
mkdir -p binaries
|
mkdir -p binaries
|
||||||
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
||||||
|
|
||||||
- name: Build binary (Windows)
|
- name: Build binary (Windows)
|
||||||
if: matrix.target == 'windows-x64'
|
if: matrix.target == 'windows-x64' || matrix.target == 'windows-x64-baseline'
|
||||||
run: |
|
run: |
|
||||||
New-Item -ItemType Directory -Force -Path binaries
|
New-Item -ItemType Directory -Force -Path binaries
|
||||||
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
bun build server/index.ts --compile --target ${{ matrix.bun-target }} --outfile ${{ matrix.binary }}
|
||||||
@@ -106,12 +112,12 @@ jobs:
|
|||||||
run: bun build server/organize-worker.ts --target node --outfile organize-worker.js
|
run: bun build server/organize-worker.ts --target node --outfile organize-worker.js
|
||||||
|
|
||||||
- name: Package archive (Windows)
|
- name: Package archive (Windows)
|
||||||
if: matrix.target == 'windows-x64'
|
if: matrix.target == 'windows-x64' || matrix.target == 'windows-x64-baseline'
|
||||||
run: Compress-Archive -Path ${{ matrix.binary }}, organize-worker.js, public -DestinationPath ${{ matrix.archive }}
|
run: Compress-Archive -Path ${{ matrix.binary }}, organize-worker.js, public -DestinationPath ${{ matrix.archive }}
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
|
|
||||||
- name: Package archive (Unix)
|
- name: Package archive (Unix)
|
||||||
if: matrix.target != 'windows-x64'
|
if: matrix.target != 'windows-x64' && matrix.target != 'windows-x64-baseline'
|
||||||
run: |
|
run: |
|
||||||
chmod +x ${{ matrix.binary }}
|
chmod +x ${{ matrix.binary }}
|
||||||
zip -r ${{ matrix.archive }} ${{ matrix.binary }} organize-worker.js public/
|
zip -r ${{ matrix.archive }} ${{ matrix.binary }} organize-worker.js public/
|
||||||
|
|||||||
Reference in new issue
Block a user