Update build.yml
This commit is contained in:
parent
c83d9c8ed5
commit
9e940cd60a
18
.github/workflows/build.yml
vendored
18
.github/workflows/build.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build — Windows & Linux
|
name: Build — Windows, Linux & macOS
|
||||||
|
|
||||||
# Trigger on every push to main, on version tags, or manually
|
# Trigger on every push to main, on version tags, or manually
|
||||||
on:
|
on:
|
||||||
@ -22,10 +22,10 @@ jobs:
|
|||||||
include:
|
include:
|
||||||
- os: windows-latest
|
- os: windows-latest
|
||||||
name: windows
|
name: windows
|
||||||
artifact_glob: "dist/*.exe"
|
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
name: linux
|
name: linux
|
||||||
artifact_glob: "dist/GDPRScanner"
|
- os: macos-13
|
||||||
|
name: macos
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
name: GDPRScanner / ${{ matrix.name }}
|
name: GDPRScanner / ${{ matrix.name }}
|
||||||
@ -58,6 +58,11 @@ jobs:
|
|||||||
Xvfb :99 -screen 0 1024x768x24 &
|
Xvfb :99 -screen 0 1024x768x24 &
|
||||||
echo "DISPLAY=:99" >> $GITHUB_ENV
|
echo "DISPLAY=:99" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Install macOS system dependencies
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: |
|
||||||
|
brew install tesseract tesseract-lang poppler
|
||||||
|
|
||||||
- name: Install Python dependencies
|
- name: Install Python dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
@ -84,6 +89,12 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
Compress-Archive -Path dist\GDPRScanner -DestinationPath dist\GDPRScanner_windows_x64.zip
|
Compress-Archive -Path dist\GDPRScanner -DestinationPath dist\GDPRScanner_windows_x64.zip
|
||||||
|
|
||||||
|
- name: Package macOS binary
|
||||||
|
if: runner.os == 'macOS'
|
||||||
|
run: |
|
||||||
|
cd dist
|
||||||
|
zip -r "GDPRScanner_macos_x86_64.zip" "GDPRScanner.app"
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
@ -92,6 +103,7 @@ jobs:
|
|||||||
path: |
|
path: |
|
||||||
dist/GDPRScanner_linux_x86_64.zip
|
dist/GDPRScanner_linux_x86_64.zip
|
||||||
dist/GDPRScanner_windows_x64.zip
|
dist/GDPRScanner_windows_x64.zip
|
||||||
|
dist/GDPRScanner_macos_x86_64.zip
|
||||||
|
|
||||||
# ── Release ───────────────────────────────────────────────────────────────
|
# ── Release ───────────────────────────────────────────────────────────────
|
||||||
# • version tag (v*) → proper versioned release with generated notes
|
# • version tag (v*) → proper versioned release with generated notes
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user