fix: handle race condition when a Git repo is cloned in parallel #154
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci-cross-mingw | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
Test: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: | |
- ubuntu-22.04 | |
cmake: | |
- true | |
platform: | |
- x64 | |
- x86 | |
include: | |
- platform: x64 | |
cross_cc: x86_64-w64-mingw32-gcc | |
cross_cxx: x86_64-w64-mingw32-g++ | |
- platform: x86 | |
cross_cc: i686-w64-mingw32-gcc | |
cross_cxx: i686-w64-mingw32-g++ | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/vcpkg | |
./build/vcpkg_installed | |
${{ env.HOME }}/.cache/vcpkg/archives | |
${{ env.XDG_CACHE_HOME }}/vcpkg/archives | |
${{ env.LOCALAPPDATA }}\vcpkg\archives | |
${{ env.APPDATA }}\vcpkg\archives | |
key: ${{ runner.os }}-cross-mingw-${{ matrix.platform }}-${{ env.BUILD_TYPE }}-${{ hashFiles('**/CMakeLists.txt') }}-${{ hashFiles('./vcpkg.json')}}-${{ matrix.cmake }} | |
restore-keys: | | |
${{ runner.os }}-${{ env.BUILD_TYPE }}- | |
- name: Setup Cpp | |
uses: aminya/setup-cpp@v1 | |
with: | |
cmake: ${{ matrix.cmake }} | |
ninja: true | |
vcpkg: true | |
conan: true | |
cppcheck: true | |
clangtidy: true | |
task: true | |
doxygen: true | |
powershell: true | |
- name: Setup MinGW | |
uses: egor-tensin/setup-mingw@v2 | |
with: | |
platform: ${{ matrix.platform }} | |
- name: Build (Minimal) | |
run: | | |
task minimal:build.mingw | |
env: | |
CMAKE_GENERATOR: ${{ matrix.cmake_generator }} | |
CROSS_CC: ${{ matrix.cross_cc }} | |
CROSS_CXX: ${{ matrix.cross_cxx }} | |
# TODO: more complex build example | |
#- name: Build | |
# run: | | |
# task build_mingw | |
# env: | |
# CMAKE_GENERATOR: ${{ matrix.cmake_generator }} | |
# CROSS_CC: ${{ matrix.cross_cc }} | |
# CROSS_CXX: ${{ matrix.cross_cxx }} |