Skip to content

Commit

Permalink
make binary executable by default on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ArmanDris committed May 25, 2024
1 parent 43bc69d commit a47395a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,11 @@ jobs:
# Build your program with the given configuration. Note that --config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }}

- name: Adjust Library Paths (macOS only)
- name: Give execute permissions & Adjust Library Paths (macOS only)
if: matrix.os == 'macos-latest'
run: |
install_name_tool -change @rpath/../Frameworks/freetype.framework/Versions/A/freetype @executable_path/../Frameworks/freetype.framework/Versions/A/freetype ${{ steps.strings.outputs.build-output-dir }}/bin/ChessEngines
chmod +x ${{ steps.strings.outputs.build-output-dir }}/bin/ChessEngines
- name: Upload Build Artifacts (macOS)
if: matrix.os == 'macos-latest' && matrix.c_compiler == 'gcc'
Expand Down

0 comments on commit a47395a

Please sign in to comment.