diff --git a/.appveyor.yml b/.appveyor.yml deleted file mode 100644 index 11946b9e8..000000000 --- a/.appveyor.yml +++ /dev/null @@ -1,18 +0,0 @@ -# set clone depth -clone_depth: 5 # clone entire repository history if not defined - -environment: - matrix: - - CYG_ARCH: x86 - CYG_ROOT: C:/cygwin - - CYG_ARCH: x86_64 - CYG_ROOT: C:/cygwin64 - -install: -- '%CYG_ROOT%\setup-%CYG_ARCH%.exe -qnNdO -R %CYG_ROOT% -s http://cygwin.mirror.constant.com -l %CYG_ROOT%/var/cache/setup -P curl' -- SET "PATH=%CYG_ROOT%\bin;%PATH%" - -build: off - -test_script: - - '%CYG_ROOT%/bin/bash -lc "g++ --version && cd $APPVEYOR_BUILD_FOLDER && ./autogen.sh && ./configure && make check"' diff --git a/.github/workflows/downstream.yml b/.github/workflows/downstream.yml new file mode 100644 index 000000000..116453cf8 --- /dev/null +++ b/.github/workflows/downstream.yml @@ -0,0 +1,66 @@ +name: "Downstream" +on: + workflow_dispatch: + pull_request: + push: + branches: + - "main" + - "stable-*.*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + python: + env: + CC: "ccache gcc" + CXX: "ccache g++" + # The CXXFLAGS below must be set to -O0 because o/w this CI job fails + # with a library loading issue (related to fmt). The flag -O3 is set + # in libsemigroups/Makefile.am, and removing that also resolves this + # issue. JDM also tried with -O1/2 and this didn't work either. + CXXFLAGS: "-fdiagnostics-color -O0" + CONFIG_FLAGS: "--disable-hpcombi --disable-popcnt --disable-clzll" + URL: "https://github.com/libsemigroups/libsemigroups_pybind11.git" + LD_LIBRARY_PATH: "/usr/local/lib/" + name: libsemigroups_pybind11 / v1 branch + runs-on: ubuntu-latest + steps: + - name: "Checkout libsemigroups" + uses: actions/checkout@v3 + - name: "Install git + autotools" + run: | + sudo apt-get --yes update + sudo apt-get install git --yes + sudo apt-get install pkg-config m4 libtool automake autoconf --yes + sudo apt-get install libtool-bin --yes + - name: "Setup ccache . . ." + uses: Chocobo1/setup-ccache-action@v1 + with: + update_packager_index: false + install_ccache: true + - name: "Configure libsemigroups . . ." + run: | + mkdir -p m4 + ./autogen.sh + ./configure CXX="$CXX" CXXFLAGS="$CXXFLAGS" $CONFIG_FLAGS + - name: "Build libsemigroups . . ." + run: sudo make install -j4 + - name: "Clone libsemigroups_pybind11 . . ." + run: git clone "$URL" --depth 1 --branch v1 + - name: "Install prerequisites for libsemigroups_pybind11 . . ." + run: | + cd libsemigroups_pybind11 + sudo apt-get --yes update + sudo apt-get install python3 --yes + sudo apt-get install python3-pip --yes + sudo -H pip3 install -r requirements.txt + - name: "Building libsemigroups_pybind11 . . ." + run: | + cd libsemigroups_pybind11 + sudo -H pip3 install . + - name: "Running libsemigroups_pybind11 tests. . ." + run: | + cd libsemigroups_pybind11 + make check