Skip to content

Commit

Permalink
Fall back to CxxWrap as package in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
barche committed Apr 2, 2024
1 parent dbeb773 commit 77d7810
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/test-linux-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/test-win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 77d7810

Please sign in to comment.