Create release asset #2
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create artifact | |
on: [workflow_dispatch] | |
jobs: | |
create_build_artifact: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Install dependencies | |
run: | | |
apt-get update | |
apt-get install gcc g++ gfortran ninja-build git cmake liblapack-dev pkg-config --install-recommends -y | |
- uses: actions/checkout@v4 | |
with: | |
ref: 3.6.3 | |
- name: Build casadi | |
run: | | |
mkdir -p casadi_install | |
mkdir build | |
cd build | |
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=casadi_install | |
cd .. | |
cmake --build build | |
cmake --install build | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: casadi_v3.6.3 | |
path: casadi_install | |
overwrite: true | |
if-no-files-found: error |