-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try build for osx * Attempt 2 * attempt 3 * Where are we? * Attempt 5 * print workspaces * Use the github workspace * Check current directory * Build on macos-latest * rm extra `cd build` * rm TARGET_OS_IPHONE macro from RtMidi.cpp * Dummy release * Add tag requirement Seems like they are needed after all. * Add tag name to file version
- Loading branch information
Showing
2 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: osx-wizmode | ||
on: [push] | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
BUILD_TYPE: Release | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: make-build-dir | ||
run: mkdir build | ||
- name: Print github workspace | ||
run: | | ||
echo "PWD = $PWD" | ||
echo "GITHUB_WORKSPACE = $GITHUB_WORKSPACE" | ||
echo "github.workspace = ${{ github.workspace }}" | ||
echo "${{runner.workspace}}" | ||
echo "HOME = $HOME" | ||
- name: Set env | ||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
- name: Show git tag | ||
run: | | ||
echo $RELEASE_VERSION | ||
echo ${{ env.RELEASE_VERSION }} | ||
- name: CI-Build | ||
shell: bash | ||
working-directory: ${{github.workspace}}/build | ||
env: | ||
CXXFLAGS: -DWIZARD | ||
run: | | ||
export SDL2DIR="$HOME/Thirdparty/Frameworks" | ||
export BUILD_MAC_APP=ON | ||
export IVAN_BUILD_DIR="${{github.workspace}}/build" | ||
export IVAN_FILE_VERSION=${RELEASE_VERSION#v} | ||
../ci/osx/requirements.sh | ||
../ci/osx/build.sh | ||
make install | ||
../ci/osx/package.sh | ||
ls ./osx | ||
# Attention: you perform the release step when you push a tag, neat huh? | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
if: startsWith(github.ref, 'refs/tags/') | ||
with: | ||
files: ${{github.workspace}}/build/osx/*.dmg | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
#GITHUB_REPOSITORY: attnam/ivan |
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