Skip to content

Commit

Permalink
add workflow to build casadi and upload artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
Nargaruga committed Apr 23, 2024
1 parent 36d4dd6 commit a2cadcf
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/create_artifact.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a2cadcf

Please sign in to comment.