new-feature: create binaries with GitHub Actions #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |