Skip to content

Commit

Permalink
add macos 11 build
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzhi713 committed Jan 26, 2022
1 parent b351dad commit dd302c9
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/build_executable.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,36 @@ jobs:
- name: Build
run: |
. ./build_scripts/install_dependencies.sh macos
. ./build_scripts/build.sh macos
. ./build_scripts/build.sh macos 10.15
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
./dist/photomosaic-maker-${{ env.VERSION }}-macos-x64
./dist/photomosaic-maker-${{ env.VERSION }}-macos-x64.tar.gz
./photomosaic-maker-${{ env.VERSION }}-macos-x64-build.tar.gz
./dist/photomosaic-maker-${{ env.VERSION }}-macos-10.15-x64
./dist/photomosaic-maker-${{ env.VERSION }}-macos-10.15-x64.tar.gz
./photomosaic-maker-${{ env.VERSION }}-macos-10.15-x64-build.tar.gz
build-macos11:
runs-on: macos-11
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Build
run: |
. ./build_scripts/install_dependencies.sh macos
. ./build_scripts/build.sh macos 11
- name: Release
uses: softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
./dist/photomosaic-maker-${{ env.VERSION }}-macos-11-x64
./dist/photomosaic-maker-${{ env.VERSION }}-macos-11-x64.tar.gz
./photomosaic-maker-${{ env.VERSION }}-macos-11-x64-build.tar.gz
build-linux:
runs-on: ubuntu-18.04
steps:
Expand Down
6 changes: 5 additions & 1 deletion build_scripts/build.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/bin/bash
PLATFORM=$1
NAME=photomosaic-maker-${VERSION}-$PLATFORM-x64
PLATV=$2
if [[ $2 != "" ]]; then
PLATV="-$2"
fi
NAME=photomosaic-maker-${VERSION}-${PLATFORM}${PLATV}-x64

rm -rf dist/*

Expand Down

0 comments on commit dd302c9

Please sign in to comment.