diff --git a/.github/workflows/test-linux-mac.yml b/.github/workflows/test-linux-mac.yml index 47e85a0..7141e02 100644 --- a/.github/workflows/test-linux-mac.yml +++ b/.github/workflows/test-linux-mac.yml @@ -35,6 +35,9 @@ jobs: run: | body="${{github.event.pull_request.body}}" package="$(echo "$body" | sed -n '1p')" + if [ -z "${package}" ]; then + package="CxxWrap" + fi if [[ "$OSTYPE" != "darwin"* ]]; then rm -f /opt/hostedtoolcache/julia/1.6*/x64/lib/julia/libstdc++.so.6 fi diff --git a/.github/workflows/test-win.yml b/.github/workflows/test-win.yml index de1cf08..6ff9df3 100644 --- a/.github/workflows/test-win.yml +++ b/.github/workflows/test-win.yml @@ -33,12 +33,18 @@ jobs: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - name: Config and Test + env: + body: ${{ github.event.pull_request.body }} run: | mkdir build cd build cmake -G "Visual Studio 17 2022" -A x64 -DOVERRIDES_PATH=$HOMEDRIVE/$HOMEPATH/.julia/artifacts/Overrides.toml -DOVERRIDE_ROOT=./ -DAPPEND_OVERRIDES_TOML=ON .. - body="${{github.event.pull_request.body}}" + echo "body: $body" package="$(echo "$body" | sed -n '1p')" + echo "package: $package" + if [ -z "${package}" ]; then + package="CxxWrap" + fi cmake --build . --config Release julia -e "using Pkg; Pkg.Registry.add(\"General\"); Pkg.Registry.add(RegistrySpec(url = \"https://github.com/barche/CxxWrapTestRegistry.git\"))" julia -e "using Pkg; pkg\"add ${package}\"; using CxxWrap"