Skip to content

Commit

Permalink
using local workdir. down running os.
Browse files Browse the repository at this point in the history
  • Loading branch information
levalup committed Jul 1, 2024
1 parent 267d10b commit 0230cb3
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/build-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
! contains(toJSON(github.event.commits.*.message), '[skip ci]') &&
! contains(toJSON(github.event.commits.*.message), '[skip github]')
runs-on: ubuntu-latest
runs-on: ubuntu-20.04

strategy:
fail-fast: false
Expand All @@ -30,10 +30,7 @@ jobs:

container:
image: gcc:${{matrix.gcc_version}}
options: >-
-v /usr/local:/host_usr_local
-v "${{ github.workspace }}":/workspace
--workdir /workspace
options: -v /usr/local:/host_usr_local

steps:
- uses: actions/checkout@v1
Expand All @@ -55,16 +52,16 @@ jobs:

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

0 comments on commit 0230cb3

Please sign in to comment.