-
Notifications
You must be signed in to change notification settings - Fork 146
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add github action configuration for compile test
Add a compilation test configuration file for continuous integration, similar to Travis-CI (file .travis.yaml in project root directory), but running as a github action instead. # This is the commit message #2:
- Loading branch information
Showing
1 changed file
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,54 @@ | ||
name: Compilation test | ||
|
||
on: | ||
|
||
push: | ||
branches: | ||
- master | ||
- develop | ||
|
||
pull_request: | ||
branches: | ||
- master | ||
- develop | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
env: | ||
config_name: ${{ runner.os }} | ||
|
||
steps: | ||
|
||
- name: test env variable | ||
run: echo '${{ env.config_name }}' | ||
|
||
- name: test runner context | ||
run: echo '${{ runner.os }}' | ||
|
||
# - name: install dependencies | ||
# run: | | ||
# sudo apt -qq update | ||
# sudo apt install -y gfortran gcc g++ | ||
# sudo apt install -y expect | ||
# sudo apt install -y grace | ||
# sudo apt install -y libmotif-dev | ||
|
||
# - name: checkout | ||
# uses: actions/checkout@v3 | ||
|
||
# - name: configure | ||
# run: | | ||
# HEN_HOUSE/scripts/configure.expect ${config_name}.conf | tee configure.log | ||
|
||
# - name: report | ||
# run: | | ||
# export EGS_HOME=$HOME/EGSnrc/egs_home | ||
# export EGS_CONFIG=$HOME/EGSnrc/HEN_HOUSE/specs/${config_name}.conf | ||
# source $HOME/EGSnrc/HEN_HOUSE/scripts/egsnrc_bashrc_additions | ||
# for f in HEN_HOUSE/log/*.log configure.log; do echo $f; cat $f; done | ||
# (! grep -i fail configure.log) | ||
# date |