Skip to content

Commit

Permalink
GitHub: build and publish mmv1 on Github
Browse files Browse the repository at this point in the history
  • Loading branch information
meynardc committed Mar 29, 2023
1 parent 46bafbc commit f4800e8
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 18 deletions.
38 changes: 21 additions & 17 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.)
Expand All @@ -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

8 changes: 8 additions & 0 deletions README-GitHub-release.txt
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.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
MICMAC
======
[![Build Status](https://travis-ci.org/micmacIGN/micmac.svg?branch=master)](https://travis-ci.org/micmacIGN/micmac)

[Version française](LISEZMOI.md)

Expand Down

0 comments on commit f4800e8

Please sign in to comment.