Skip to content

Commit

Permalink
dynamic workers set
Browse files Browse the repository at this point in the history
  • Loading branch information
lrlunin committed Mar 27, 2024
1 parent 14de762 commit 73db4c0
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/cmake-single-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,17 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Get number of CPU cores
uses: SimenB/github-actions-cpu-cores@v2
id: cpu-cores
- name: Set coer counter
run: echo "CPU_CORES=${{ steps.cpu-cores.outputs.count }}" >> $GITHUB_ENV
- name: Install both own, tango and slsDetectorPackage dependencies
run: sudo apt-get install -y libzmq3-dev libtiff-dev libhdf5-dev libfmt-dev rapidjson-dev libboost-dev libmariadb-dev zlib1g-dev libomniorb4-dev libcos4-dev omniidl
- name: Download and extract tango
run: wget https://gitlab.com/api/v4/projects/24125890/packages/generic/TangoSourceDistribution/9.3.5/tango-9.3.5.tar.gz
- name: Untar, cd, configure, compile and install
run: tar xzvf tango-9.3.5.tar.gz && cd tango-9.3.5 && ./configure --prefix=/usr/local/tango && make && sudo make install
run: tar xzvf tango-9.3.5.tar.gz && cd tango-9.3.5 && ./configure --prefix=/usr/local/tango && make -j$CPU_CORES && sudo make install
- name: Fetch slsDetectorPackage
uses: actions/checkout@v4
with:
Expand All @@ -39,7 +44,7 @@ jobs:

- name: Build slsDetectorPackage
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build -j2 --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build -j$CPU_CORES --config ${{env.BUILD_TYPE}}

- name: Install slsDetectorPackage
# Install the config
Expand All @@ -55,5 +60,5 @@ jobs:

- name: Build our repository
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build -j2 --config ${{env.BUILD_TYPE}}
run: cmake --build ${{github.workspace}}/build -j$CPU_CORES --config ${{env.BUILD_TYPE}}

0 comments on commit 73db4c0

Please sign in to comment.