-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from andriish/small_cmake_updates
Small cmake updates
- Loading branch information
Showing
6 changed files
with
89 additions
and
13 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,3 @@ | ||
FROM fedora:35 | ||
COPY entrypoint.sh /entrypoint.sh | ||
ENTRYPOINT ["/entrypoint.sh"] |
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,15 @@ | ||
name: 'Compile QCDLOOP' | ||
description: 'QCDLOOP' | ||
inputs: | ||
who-to-greet: # id of input | ||
description: 'Set something' | ||
required: true | ||
default: 'Hi !' | ||
outputs: | ||
time: # id of output | ||
description: 'Some result' | ||
runs: | ||
using: 'docker' | ||
image: 'Dockerfile' | ||
args: | ||
- ${{ inputs.who-to-greet }} |
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,12 @@ | ||
#!/bin/sh -l | ||
set -x | ||
uname -a | ||
cat /etc/issue | ||
dnf -y install gcc gcc-c++ gcc-gfortran make which cmake cmake-data cmake-filesystem | ||
|
||
cmake -S . -B BUILD -DCMAKE_INSTALL_PREFIX=$(pwd)/INSTALL | ||
cmake --build BUILD | ||
cmake --install BUILD | ||
|
||
out=$? | ||
echo ::set-output name=out::$out |
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,22 @@ | ||
name: build | ||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
#Every 50 days at midnight | ||
- cron: "0 0 1/600 * *" | ||
|
||
jobs: | ||
|
||
compilejobFedora35: | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
runs-on: ubuntu-latest | ||
name: CI_on_Fedora35 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Compile | ||
id: compileindocker | ||
uses: ./.github/workflows/fedora35 | ||
- name: Get the output status | ||
run: exit ${{ steps.compileindocker.outputs.out }} |
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
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 |
---|---|---|
@@ -1 +1 @@ | ||
#define VERSION @VERSION@ | ||
#define VERSION "@VERSION@" |