From a2cadcf2972094add51e05ba98faf1d8d71648e3 Mon Sep 17 00:00:00 2001 From: Leonardo Da Pozzo Date: Tue, 23 Apr 2024 14:42:27 +0200 Subject: [PATCH] add workflow to build casadi and upload artifact --- .github/workflows/create_artifact.yml | 29 +++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/create_artifact.yml diff --git a/.github/workflows/create_artifact.yml b/.github/workflows/create_artifact.yml new file mode 100644 index 0000000000..716bb15224 --- /dev/null +++ b/.github/workflows/create_artifact.yml @@ -0,0 +1,29 @@ +name: Create artifact + +on: [workflow_dispatch] + +jobs: + create_build_artifact: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v4 + with: + ref: 3.6.3 + + - name: Build casadi + run: | + install_prefix=$(pwd)/casadi_install/ + mkdir -p ${install_prefix} + mkdir build + cd build + cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${install_prefix} + cd .. + cmake --build build + cmake --install build + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: casadi_v3.6.3 + path: ${install_prefix} + overwrite: true