-
Notifications
You must be signed in to change notification settings - Fork 1
37 lines (37 loc) · 1.08 KB
/
main.yml
File metadata and controls
37 lines (37 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
on:
push:
paths:
- 'IlpSolverIf/**'
- 'CMakeLists.txt'
- '.github/workflows/**'
jobs:
build:
strategy:
matrix:
container: ['manylinux_2_28_x86_64']
runs-on: ubuntu-latest
container: quay.io/pypa/${{matrix.container}}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: master
- name: make ILPSolverIf
run: |
rdir=`pwd`
rm -rf build
mkdir build && cd build
rm -rf ${rdir}/${{matrix.container}}
mkdir ${rdir}/${{matrix.container}}
cmake -DCMAKE_INSTALL_PREFIX:PATH=${rdir}/${{matrix.container}} ..
make -j8
make install
cd -
git config --global --add safe.directory /__w/ILPSolverInterface/ILPSolverInterface
git config user.name "srini229"
git config user.email "rampras@umn.edu"
git add -f ${{matrix.container}}/
git diff --staged --quiet || git commit -m "CI_WORKFLOW_COMMIT - upload libs and includes to ${{matrix.container}} [skip ci]"
git branch
git pull
git push