Skip to content

Commit

Permalink
Include compiler info and display upon initializing
Browse files Browse the repository at this point in the history
  • Loading branch information
drbergman committed Sep 5, 2024
1 parent fc7b808 commit 28b491b
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
25 changes: 21 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,27 @@ jobs:
- '1.10.4' # the one I have been developing with
- '1' # to check the latest v1 version
- 'pre' # check upcoming releases
os:
- ubuntu-latest
os: ["ubuntu-latest"]
shell: ["bash"]
compiler: ["g++"]
include:
- os: macOS-latest
- os: "macOS-latest"
julia-version: '1'
shell: "bash"
compiler: "g++-13"
# include: # can't get this to work yet...
# - os: macOS-latest
# name: "macOS"
# shell: "bash"
# compiler: "g++-13"
# julia-version: '1'

runs-on: ${{ matrix.os }}

defaults:
run:
shell: ${{ matrix.shell }}

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -60,13 +75,15 @@ jobs:
version: ${{ matrix.julia-version }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
# - uses: julia-actions/julia-runtest@v1 # not sure what this does yet...runs files marked as tests?
- name: Install julia dependencies
run: |
julia -e 'using Pkg; \
Pkg.add(["DataFrames", "CSV", "SQLite", "Random", "LightXML", "LazyGrids", "Dates", "Tables", "Distributions", "Statistics", "QuasiMonteCarlo", "Sobol", "MAT", "FFTW", "GlobalSensitivity"]); \
Pkg.update()'
echo "Julia packages added and updated"
# - uses: julia-actions/julia-runtest@v1 # not sure what this does yet...runs files marked as tests?
- name: Set environment variable PHYSICELL_CPP
run: echo "PHYSICELL_CPP=${{ matrix.compiler }}" >> $GITHUB_ENV
- name: Run sampling
run: |
cd ./tests
Expand Down
1 change: 1 addition & 0 deletions src/VCTModule.jl
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function initializeVCT(path_to_physicell::String, path_to_data::String)
global data_dir = abspath(path_to_data)
println(rpad("Path to PhysiCell:", 20, ' ') * physicell_dir)
println(rpad("Path to data:", 20, ' ') * data_dir)
println(rpad("Compiler:", 20, ' ') * PHYSICELL_CPP)
initializeDatabase("$(data_dir)/vct.db")
flush(stdout)
end
Expand Down

0 comments on commit 28b491b

Please sign in to comment.