Skip to content

Commit

Permalink
CI: Fix relative paths and add macos arm upload job
Browse files Browse the repository at this point in the history
  • Loading branch information
ju-manns committed Oct 19, 2023
1 parent 99fd99b commit 6a3c52a
Showing 1 changed file with 15 additions and 17 deletions.
32 changes: 15 additions & 17 deletions .github/workflows/build_mac_arm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,29 +35,27 @@ jobs:
cd soplex-release-604
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=../../soplex ..
make
cmake -DCMAKE_INSTALL_PREFIX=~/scip ..
make -j
make install
if: success() # Build soplex only if the previous steps succeed

- name: Build C++ program
run: |
mkdir build
cd build
cmake .. -DCMAKE_PREFIX_PATH=../soplex -DAUTOBUILD=ON -DCMAKE_BUILD_TYPE=Release
make
cmake .. -DSOPLEX_DIR=~/scip -DAUTOBUILD=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=~/scip
make -j
make install
if: success() # Build the program only if the previous steps succeed

# - name: Package the program
# run: |
# # Create a package (e.g., a ZIP or DMG file) from the compiled program
# # You may need to modify this step based on your packaging requirements
# # For example, you can use `cp` to copy the program to a package directory
# # and then create a ZIP or DMG file from that directory.
# if: success() # Package the program only if the previous steps succeed

# - name: Upload package artifact
# uses: actions/upload-artifact@v2
# with:
# name: my_program_package # Replace with your desired artifact name
# path: path/to/package # Replace with the actual path to your packaged program
- name: Package the program
run: |
zip -r ~/package.zip ~/scip
if: success() # Package the program only if the previous steps succeed

- name: Upload package artifact
uses: actions/upload-artifact@v2
with:
name: scip_macos_arm # Replace with your desired artifact name
path: ~/package.zip # Replace with the actual path to your packaged program

0 comments on commit 6a3c52a

Please sign in to comment.