Skip to content

Commit

Permalink
action test
Browse files Browse the repository at this point in the history
  • Loading branch information
Udopia committed Feb 29, 2024
1 parent 57b337f commit 05b4be2
Showing 1 changed file with 7 additions and 17 deletions.
24 changes: 7 additions & 17 deletions .github/workflows/linux_build_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,34 +27,24 @@ jobs:
# ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Install libarchive
run: |
sudo apt install libarchive-dev
shell: bash

- 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=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
run: sudo apt install libarchive-dev
shell: bash

- name: Configure CMake
run: |
ls ${{ github.workspace }}
ls .
cmake -B ${{ steps.strings.outputs.build }} -S ${{ github.workspace }}
run: cmake .
# run: >
# cmake -B ${{ steps.strings.outputs.build}}
# cmake -B ${{ github.workspace }}/build
# -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }}
# -DCMAKE_C_COMPILER=${{ matrix.c_compiler }}
# -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
# -S ${{ github.workspace }}

- name: Build
run: cmake -B ${{ steps.strings.outputs.build }} # --config ${{ matrix.build_type }}
run: cmake -B ${{ github.workspace }}/build # --config ${{ matrix.build_type }}

- name: Run tests
working-directory: ${{ steps.strings.outputs.build }}
run: ctest -B ${{ steps.strings.outputs.build }}
working-directory: ${{ github.workspace }}/build
run: ctest -B ${{ github.workspace }}/build
# run: ctest --build-config ${{ matrix.build_type }}

- name: Build manylinux wheels
Expand Down

0 comments on commit 05b4be2

Please sign in to comment.