Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix create_artifact workflow #2

Merged
merged 3 commits into from
Apr 23, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions .github/workflows/create_artifact.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,21 @@ jobs:
create_build_artifact:
runs-on: ubuntu-22.04
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo 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: |
install_prefix=$(pwd)/casadi_install/
mkdir -p ${install_prefix}
mkdir -p casadi_install
mkdir build
cd build
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${install_prefix}
cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${GITHUB_WORKSPACE}/casadi_install
cd ..
cmake --build build
cmake --install build
Expand All @@ -25,5 +29,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: casadi_v3.6.3
path: ${install_prefix}
path: casadi_install
overwrite: true
if-no-files-found: error