WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit 2003cfb

Browse files
Merge pull request #11 from KrisThielemans/prd2PETSIRD
Changes prd to PETSIRD and update module/CI
2 parents ad49ea9 + 08afbf0 commit 2003cfb

File tree

10 files changed

+25
-38
lines changed

10 files changed

+25
-38
lines changed

.devcontainer/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ ARG USERNAME="vscode"
2929
ARG USER_UID=1000
3030
ARG USER_GID=$USER_UID
3131
ARG CONDA_GID=900
32-
ARG CONDA_ENVIRONMENT_NAME=prd
32+
ARG CONDA_ENVIRONMENT_NAME=petsird
3333

3434
RUN apt-get update && apt-get install -y \
3535
libc6-dbg \
@@ -83,7 +83,7 @@ ENV CMAKE_GENERATOR=Ninja
8383

8484
# Create a kits file for the VSCode CMake Tools extension, so you are not prompted for which kit to select whenever you open VSCode
8585
RUN mkdir -p /home/vscode/.local/share/CMakeTools \
86-
&& echo '[{"name":"GCC-10","compilers":{"C":"/opt/conda/envs/prd/bin/x86_64-conda_cos6-linux-gnu-gcc","CXX":"/opt/conda/envs/prd/bin/x86_64-conda_cos6-linux-gnu-g++"}}]' > /home/vscode/.local/share/CMakeTools/cmake-tools-kits.json \
86+
&& echo '[{"name":"GCC-10","compilers":{"C":"/opt/conda/envs/petsird/bin/x86_64-conda_cos6-linux-gnu-gcc","CXX":"/opt/conda/envs/petsird/bin/x86_64-conda_cos6-linux-gnu-g++"}}]' > /home/vscode/.local/share/CMakeTools/cmake-tools-kits.json \
8787
&& chown vscode:conda /home/vscode/.local/share/CMakeTools/cmake-tools-kits.json
8888

8989
# Install the yardl tool

.devcontainer/devcontainer.bashrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# shellcheck source=/dev/null
33

44
source /opt/conda/etc/profile.d/conda.sh
5-
conda activate prd
5+
conda activate petsird
66
source <(yardl completion bash)
77

88
if [[ "${BASH_ENV:-}" == "$(readlink -f "${BASH_SOURCE[0]:-}")" ]]; then

.devcontainer/devcontainer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// For format details, see https://aka.ms/devcontainer.json.
22
{
3-
"name": "prd",
3+
"name": "petsird",
44
"build": {
55
"dockerfile": "Dockerfile",
66
"context": ".."
@@ -47,7 +47,7 @@
4747
"cmake.buildDirectory": "${workspaceFolder}/cpp/build",
4848
"cmake.configureOnOpen": false,
4949

50-
"python.defaultInterpreterPath": "/opt/conda/envs/prd/bin/python",
50+
"python.defaultInterpreterPath": "/opt/conda/envs/petsird/bin/python",
5151
"python.analysis.typeCheckingMode": "strict",
5252
"python.analysis.diagnosticMode": "workspace",
5353
"python.analysis.diagnosticSeverityOverrides": {
@@ -87,7 +87,7 @@
8787
"gitlens.showWhatsNewAfterUpgrades": false
8888
},
8989

90-
"gcovViewer.gcovBinary": "/opt/conda/envs/prd/bin/x86_64-conda-linux-gnu-gcov",
90+
"gcovViewer.gcovBinary": "/opt/conda/envs/petsird/bin/x86_64-conda-linux-gnu-gcov",
9191
"gcovViewer.buildDirectories": ["${workspaceFolder}/cpp/build"],
9292

9393
"search.useIgnoreFiles": false,

.github/actions/configure-environment/action.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,25 @@ jobs:
2323
runs-on: ubuntu-latest
2424

2525
steps:
26-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v4
27+
with: {submodules: recursive}
28+
- name: strip environment.yml
29+
run: |
30+
cat environment.yml | grep -v "#.*\<\local\>" > temp-ci-environment.yml
31+
- uses: conda-incubator/setup-miniconda@v3
2732
with:
28-
submodules: recursive
29-
30-
- name: Configure environment
31-
uses: ./.github/actions/configure-environment
32-
33+
activate-environment: yardl
34+
environment-file: temp-ci-environment.yml
3335
- name: Install yardl
3436
run: |
37+
rm temp-ci-environment.yml
3538
YARDL_DIR=${{github.workspace}}/yardl
3639
mkdir ${YARDL_DIR}
37-
cd ${YARDL_DIR}
38-
echo "${{github.workspace}}/yardl" >> $GITHUB_PATH
39-
YARDL_VERSION=0.3.2
40+
YARDL_VERSION=0.6.2
4041
wget --quiet "https://github.com/microsoft/yardl/releases/download/v${YARDL_VERSION}/yardl_${YARDL_VERSION}_linux_x86_64.tar.gz"
41-
tar -xzf "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz"
42+
tar -xzf "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz" -C "${YARDL_DIR}"
4243
rm "yardl_${YARDL_VERSION}_linux_x86_64.tar.gz"
44+
echo "${YARDL_DIR}" >> $GITHUB_PATH
4345
4446
- name: Build model
4547
run: |

.gitmodules

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
[submodule "PETSIRD"]
22
path = PETSIRD
3-
url = https://github.com/ETSInitiative/PRDdefinition
3+
url = https://github.com/ETSInitiative/PETSIRD
4+
branch=main

cpp/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
cmake_minimum_required(VERSION 3.12.0) # older would work, but could give warnings on policy CMP0074
2-
project(PETSIRDUseCaseTemplate VERSION 0.1.0)
2+
project(PETSIRDUseCaseTemplate VERSION 0.2.0)
33

44
set(CMAKE_CXX_STANDARD 17)
55

@@ -11,7 +11,7 @@ endif()
1111

1212
# Example lines for a new executable
1313
# add_executable(my_prog my_prog.cpp)
14-
# target_link_libraries(my_prog PUBLIC prd_generated)
14+
# target_link_libraries(my_prog PUBLIC petsird_generated)
1515
# install(TARGETS my_prog DESTINATION bin)
1616

1717
add_subdirectory(../PETSIRD/cpp/generated PETSIRD_generated)

environment.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: prd
1+
name: petsird
22
channels:
33
- conda-forge
44
- defaults

python/start.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import sys
22
# Currently hard-wire location of generated files. This will need to change!
33
sys.path.append('../PETSIRD/python/')
4-
import prd
4+
import petsird
55

0 commit comments

Comments
 (0)