-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GitHub: build and publish mmv1 on Github
- Loading branch information
Showing
3 changed files
with
29 additions
and
18 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 |
---|---|---|
|
@@ -2,9 +2,8 @@ name: CMake | |
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
tags: | ||
- 'v*' | ||
|
||
env: | ||
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | ||
|
@@ -14,27 +13,32 @@ jobs: | |
multi_os: | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest, windows-latest] | ||
os: [ubuntu-latest] | ||
# os: [ubuntu-latest, windows-latest] | ||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Qt | ||
uses: jurplel/[email protected] | ||
run: sudo apt install qtbase5-dev | ||
|
||
|
||
- name: Configure CMake | ||
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. | ||
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type | ||
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} | ||
run: cmake -B build -DWITH_CCACHE=OFF -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DWITH_QT5=ON | ||
|
||
#- name: Build | ||
#run: cmake --build build --config ${{env.BUILD_TYPE}} -j 4 | ||
|
||
- name: Build | ||
# Build your program with the given configuration | ||
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} | ||
|
||
# - name: Test | ||
# working-directory: ${{github.workspace}}/build | ||
# # Execute tests defined by the CMake configuration. | ||
# # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail | ||
# run: ctest -C ${{env.BUILD_TYPE}} | ||
|
||
run: make -C build install -j 4 | ||
|
||
- name: Package | ||
run: bash -c "cd build && ../script_create_bin_dist.sh linux" | ||
|
||
- name: Upload binaries to release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
files: build/micmac_linux.tgz | ||
|
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,8 @@ | ||
To publish a release on GitHub with a compiled version of MicMac (v1, linux), | ||
use one the two following methods: | ||
- Create a git tag starting with 'v' and then push it on GitHub | ||
( git tag v2.01 ; git push origin --tag ) | ||
- Use GitHub Release creation feature with a new tag starting with 'v' | ||
|
||
The release Assets will contain, in addition to the source code, | ||
a linux compiled version of micmac v1 : micmac_linux.tgz. |
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