Tuple fixes #618
Workflow file for this run
This file contains hidden or 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
name: test-linux-mac | |
on: | |
- push | |
- pull_request | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
test: | |
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.6" | |
- "1.11" | |
- "nightly" | |
os: | |
- ubuntu-latest | |
- macos-13 | |
arch: | |
- x64 | |
include: | |
- os: macos-14 | |
arch: aarch64 | |
version: "1.11" | |
- os: macos-14 | |
arch: aarch64 | |
version: "nightly" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: julia-actions/setup-julia@latest | |
with: | |
version: ${{ matrix.version }} | |
arch: ${{ matrix.arch }} | |
- name: Set up GCC 10 on Ubuntu and Julia 1.6 | |
if: matrix.os == 'ubuntu-latest' && matrix.version == '1.6' | |
run: | | |
sudo apt-get install -y gcc-10 g++-10 | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10 | |
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-10 10 | |
- name: Build and test | |
env: | |
body: ${{ github.event.pull_request.body }} | |
run: | | |
package="$(echo "$body" | sed -n '1p')" | |
if [[ ! "${package}" =~ ^https:// ]]; then | |
package="https://github.com/JuliaInterop/CxxWrap.jl.git" | |
fi | |
if [[ "$OSTYPE" != "darwin"* ]]; then | |
rm -f /opt/hostedtoolcache/julia/1.6*/x64/lib/julia/libstdc++.so.6 | |
fi | |
mkdir build && cd build | |
CXXFLAGS=-ftemplate-backtrace-limit=0 cmake -DCMAKE_INSTALL_PREFIX=$HOME/install -DAPPEND_OVERRIDES_TOML=ON -DCMAKE_BUILD_TYPE=Debug .. | |
VERBOSE=ON cmake --build . --config Debug --target install | |
wget https://github.com/JuliaRegistries/General/raw/refs/heads/master/jll/L/libcxxwrap_julia_jll/Versions.toml | |
jllversion=$(grep '\["' Versions.toml | tail -n 1 | sed -E 's/\["([0-9]+\.[0-9]+\.[0-9]+)\+[^"]*"\]/\1/g') | |
cd lib | |
if [ ! -f libcxxwrap_julia.${jllversion}.dylib ]; then | |
ln -s libcxxwrap_julia.*.*.*.* libcxxwrap_julia.${jllversion}.dylib | |
fi | |
cd .. | |
ls -al lib | |
julia -e "using Pkg; pkg\"add ${package}\"; using CxxWrap" | |
ctest -V | |
- name: Build testlib | |
run: | | |
cd testlib-builder | |
mkdir build && cd build | |
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_PREFIX_PATH=$HOME/install ../src/testlib | |
cmake --build . --config Release |