Skip to content

new-feature: create binaries with GitHub Actions #2

new-feature: create binaries with GitHub Actions

new-feature: create binaries with GitHub Actions #2

Workflow file for this run

name: Create Binaries
on:
push:
branches:
- main
- 'pre-releases/**'
pull_request:
branches:
- copernicusmarine-toolbox-v2
jobs:
build:
runs-on: windows-latest
timeout-minutes: 20
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pyinstaller
pip install -e .
- name: Build with PyInstaller
run: |
make run-using-pyinstaller
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: windows-binary
path: dist/copernicus_marine.exe
overwrite: true