Skip to content

Commit

Permalink
build
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschmann committed May 26, 2024
1 parent c2e43a7 commit 17a2164
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/zoo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ jobs:
zoo:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
Expand All @@ -20,7 +21,6 @@ jobs:
run: |
gh api octocat
gh repo view rl-tools/zoo-blob --json name
- uses: actions/checkout@v3
- name: Commit report
run: |
Expand All @@ -45,25 +45,16 @@ jobs:
# source /opt/intel/oneapi/setvars.sh
# printenv >> $GITHUB_ENV

- name: Set reusable strings
# Turn repeated input strings (such as the build output directory) into step outputs. These step outputs can be used throughout the workflow file.
id: strings
shell: bash
run: |
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
- name: Configure CMake (Linux, macOS)
if: startsWith(matrix.os, 'ubuntu') || startsWith(matrix.os, 'macos')
run: >
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B build
-DCMAKE_BUILD_TYPE=Release
-S ${{ github.workspace }}
-S .
-DRL_TOOLS_ENABLE_TARGETS=ON
# -DRL_TOOLS_BACKEND_ENABLE_MKL=ON
- name: Build
run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --target rl_zoo
run: cmake --build build --target rl_zoo

- name: Test
- name: Run Zoo
working-directory: ${{ github.workspace }}
# Execute tests defined by the CMake configuration. Note that --build-config is needed because the default Windows generator is a multi-config generator (Visual Studio generator).
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
run: ./${{ steps.strings.outputs.build-output-dir }}/src/rl/zoo/rl_zoo
run: ./build/src/rl/zoo/rl_zoo

0 comments on commit 17a2164

Please sign in to comment.