diff --git a/.github/actions/go-check-setup/action.yml b/.github/actions/go-check-setup/action.yml index f73276c..112c2ff 100644 --- a/.github/actions/go-check-setup/action.yml +++ b/.github/actions/go-check-setup/action.yml @@ -5,7 +5,13 @@ runs: steps: - name: Install filecoin-ffi dependencies shell: bash + if: ${{ runner.os == 'Linux' }} run: sudo apt-get install -y libhwloc-dev ocl-icd-opencl-dev - name: Install filecoin-ffi shell: bash - run: make extern/filecoin-ffi \ No newline at end of file + run: make extern/filecoin-ffi + # Removes all go test files to stop the unified CI from running ffi tests as part of the build. + # See: https://github.com/protocol/multiple-go-modules/issues/11 + - name: Remove filecoin-ffi tests + shell: bash + run: find extern/filecoin-ffi -name '*_test.go' -exec rm {} \; \ No newline at end of file diff --git a/.github/actions/go-test-setup/action.yml b/.github/actions/go-test-setup/action.yml index a02842a..76c566d 100644 --- a/.github/actions/go-test-setup/action.yml +++ b/.github/actions/go-test-setup/action.yml @@ -5,7 +5,13 @@ runs: steps: - name: Install filecoin-ffi dependencies shell: bash + if: ${{ runner.os == 'Linux' }} run: sudo apt-get install -y libhwloc-dev ocl-icd-opencl-dev - name: Install filecoin-ffi shell: bash - run: make extern/filecoin-ffi \ No newline at end of file + run: make extern/filecoin-ffi + # Removes all go test files to stop the unified CI from running ffi tests as part of the build. + # See: https://github.com/protocol/multiple-go-modules/issues/11 + - name: Remove filecoin-ffi tests + shell: bash + run: find extern/filecoin-ffi -name '*_test.go' -exec rm {} \; \ No newline at end of file