First commit #1
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: π MacOS | ||
on: | ||
push: | ||
branches: | ||
- main | ||
# TODO: probably create a nightly job | ||
jobs: | ||
package: | ||
matrix: | ||
Check failure on line 11 in .github/workflows/macos.yaml GitHub Actions / π MacOSInvalid workflow file
|
||
include: | ||
- platform: 'osx-64' | ||
- platform: 'osx-arm64' | ||
name: Package for macOS | ||
steps: | ||
- name: π£ Checkout | ||
uses: actions/checkout@v3 | ||
- name: πΎ Get latest version | ||
shell: bash | ||
run: | | ||
QGIS_VERSION=$(conda search -c conda-forge -f qgis | grep py311 | tail -n 1 | tr -s ' ' | cut -f 2 -d ' ') | ||
QGIS_VERSION_SHORT=$(echo $QGIS_VERSION | cut -d'.' -f 1,2) | ||
echo QGIS_VERSION=$QGIS_VERSION >> $GITHUB_ENV | ||
echo QGIS_VERSION_SHORT=$QGIS_VERSION_SHORT >> $GITHUB_ENV | ||
sed -i s/__ver__/$QGIS_VERSION/g construct.yaml | ||
sed -i s/__shortver__/$QGIS_VERSION_SHORT/g construct.yaml | ||
- name: π¦ Package | ||
shell: bash | ||
run: | | ||
conda install constructor | ||
constructor --platform=${{ matrix.platform }} | ||
- name: π¦ Upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: '*.pkg' |