From af1e832f81980ed4b12f7f2f48f7de49375d18dd Mon Sep 17 00:00:00 2001 From: krande Date: Wed, 10 Aug 2022 09:36:19 +0200 Subject: [PATCH] Test nix builds --- .github/workflows/ci-nix-build.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/ci-py-only.yml | 2 +- nix.Dockerfile | 9 +++++++++ nix/build-all.py | 2 +- 4 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci-nix-build.yml create mode 100644 nix.Dockerfile diff --git a/.github/workflows/ci-nix-build.yml b/.github/workflows/ci-nix-build.yml new file mode 100644 index 0000000000..e6ec3fc35a --- /dev/null +++ b/.github/workflows/ci-nix-build.yml @@ -0,0 +1,28 @@ +name: ci_nix + +on: + push: + paths: + - 'src/**' + - 'test/**' + - 'conda/**' + - 'cmake/**' + - '.github/workflows/ci-nix-build.yml' + pull_request: + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + with: + submodules: recursive + - name: Install C++ dependencies + run: | + sudo apt update + sudo apt-get install --no-install-recommends \ + git gcc g++ autoconf bison make cmake libfreetype6-dev mesa-common-dev libffi-dev libfontconfig1-dev patch + + - name: Build ifcopenshell + run: | + cd nix && python3 build-all.py diff --git a/.github/workflows/ci-py-only.yml b/.github/workflows/ci-py-only.yml index b427954ac8..3fbc679ee1 100644 --- a/.github/workflows/ci-py-only.yml +++ b/.github/workflows/ci-py-only.yml @@ -14,7 +14,7 @@ jobs: activate: runs-on: ubuntu-latest if: | - github.repository == 'IfcOpenShell/IfcOpenShell' && + github.repository == 'Krande/IfcOpenShell' && !contains(github.event.head_commit.message, 'skip ci') steps: - run: echo ok go diff --git a/nix.Dockerfile b/nix.Dockerfile new file mode 100644 index 0000000000..33cb599d84 --- /dev/null +++ b/nix.Dockerfile @@ -0,0 +1,9 @@ +FROM continuumio/miniconda3 + +RUN apt-get update +RUN apt-get -y install \ + git gcc g++ autoconf bison make cmake libfreetype6-dev mesa-common-dev libffi-dev libfontconfig1-dev patch + +COPY . . + +RUN cd nix && python3 build-all.py \ No newline at end of file diff --git a/nix/build-all.py b/nix/build-all.py index f26a09b944..9cdf775040 100644 --- a/nix/build-all.py +++ b/nix/build-all.py @@ -75,7 +75,7 @@ ADD_COMMIT_SHA = os.getenv("ADD_COMMIT_SHA") PYTHON_VERSIONS = ["3.6.14", "3.7.12", "3.8.12", "3.9.7", "3.10.0"] JSON_VERSION = "v3.6.1" OCE_VERSION = "0.18.3" -OCCT_VERSION = "7.5.3" +OCCT_VERSION = "7.6.2" BOOST_VERSION = "1.71.0" PCRE_VERSION = "8.41" LIBXML2_VERSION = "2.9.11"