Skip to content

Commit

Permalink
try to fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Sep 1, 2024
1 parent 3461767 commit e1d8465
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,19 +111,20 @@ jobs:
APPLE_API_KEY_ID: ${{ secrets.api_key_id }}
APPLE_API_ISSUER: ${{ secrets.api_key_issuer_id }}

- run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' 0:none screenshot-macos.jpeg
- run: npx tsx script/e2e.mts 'dist/mac-arm64/LosslessCut.app/Contents/MacOS/LosslessCut' 0:none screenshot.jpeg
if: startsWith(matrix.os, 'macos')

- run: npx tsx script/e2e.mts 'dist\win-unpacked\LosslessCut.exe' desktop screenshot-windows.jpeg
- run: npx tsx script/e2e.mts 'dist\win-unpacked\LosslessCut.exe' desktop screenshot.jpeg
if: startsWith(matrix.os, 'windows')

- run: |
export DISPLAY=:0
sudo Xvfb -ac :0 -screen 0 1280x1024x24 > /dev/null 2>&1 &
sleep 5
ls -R dist
chmod +x dist/linux-x64/linux-unpacked/LosslessCut
npx tsx script/e2e.mts 'dist/linux-x64/linux-unpacked/LosslessCut' ':0.0+0,0' screenshot-linux.jpeg
sleep 1
chmod +x dist/linux-unpacked/LosslessCut
npx tsx script/e2e.mts 'dist/linux-unpacked/LosslessCut' ':0.0+0,0' screenshot.jpeg
if: startsWith(matrix.os, 'ubuntu')
- name: (MacOS) Upload to Mac App Store
Expand All @@ -139,7 +140,7 @@ jobs:
path: |
dist/LosslessCut-mac-arm64.dmg
dist/LosslessCut-mac-x64.dmg
screenshot-macos.jpeg
screenshot.jpeg
- name: (Windows) Upload artifacts
uses: actions/upload-artifact@v3
Expand All @@ -148,7 +149,7 @@ jobs:
name: Windows
path: |
dist/LosslessCut-win-x64.7z
screenshot-windows.jpeg
screenshot.jpeg
- name: (Linux) Upload artifacts
uses: actions/upload-artifact@v3
Expand All @@ -159,5 +160,5 @@ jobs:
dist/LosslessCut-linux-arm64.tar.bz2
dist/LosslessCut-linux-armv7l.tar.bz2
dist/LosslessCut-linux-x64.tar.bz2
screenshot-linux.jpeg
screenshot.jpeg

0 comments on commit e1d8465

Please sign in to comment.