From ee3e510a389c3077326d4650b5c7e4b44e6ab8cd Mon Sep 17 00:00:00 2001 From: Fishhh Date: Fri, 3 May 2024 02:56:45 +0200 Subject: [PATCH] WIP: Add build and test workflow --- .github/workflows/release.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..add0250 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +name: Release +on: + release: + types: [published] + +jobs: + ubuntu: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Install dependencies + run: sudo apt install build-essential cmake python3 python3-dev python3-pybind11 pybind11-dev autoconf intltool libtool automake libgmp-dev libmpfr-dev libcurl4-openssl-dev libicu-dev libxml2-dev clang python3-pytest + - name: Build + run: | + mkdir build && cd build + cmake -DUSE_SYSTEM_LIBQALCULATE=OFF .. + make -j $(nproc) + - uses: softprops/action-gh-release@v2 + with: + files: ./build/qalculate*.whl + - run: pytest