Skip to content

Commit

Permalink
fix ci not map workspace in container will.
Browse files Browse the repository at this point in the history
  • Loading branch information
levalup committed Jul 1, 2024
1 parent b37f767 commit 49bf387
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/build-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ jobs:

container:
image: gcc:${{matrix.gcc_version}}
options: -v /usr/local:/host_usr_local
options: >-
-v /usr/local:/host_usr_local
-v "${{ github.workspace }}":/workspace
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v1
with:
submodules: recursive

Expand All @@ -51,16 +53,16 @@ jobs:

- name: Configure
run: >-
cmake -B ${{ steps.strings.outputs.build-output-dir }}
cmake -B /workspace/build
-DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
-S ${{ github.workspace }}
-S /workspace
- name: Build
run: >-
cmake --build ${{ steps.strings.outputs.build-output-dir }}
cmake --build /workspace/build
--config ${{ matrix.build_type }}
-- -j ${{steps.cores.outputs.count}}
- name: Test
working-directory: ${{ steps.strings.outputs.build-output-dir }}
working-directory: /workspace/build
run: ctest --output-on-failure --build-config ${{ matrix.build_type }}

0 comments on commit 49bf387

Please sign in to comment.