From d1a803b4529318a8ba74dd15d7579d929e2bf7cc Mon Sep 17 00:00:00 2001 From: Gabriel Camargo Date: Sat, 14 Sep 2024 10:45:11 -0300 Subject: [PATCH] :green_heart: fix: os type --- .github/workflows/build-and-release.yml | 28 ++++++++++++------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build-and-release.yml b/.github/workflows/build-and-release.yml index b4aee5a..bb0c653 100644 --- a/.github/workflows/build-and-release.yml +++ b/.github/workflows/build-and-release.yml @@ -14,31 +14,31 @@ jobs: arch: [x64, x86] include: - os: ubuntu-latest - build: linux + ostype: linux install: sudo apt-get update && sudo apt-get install -y libboost-all-dev clang - os: ubuntu-24.04 - build: linux + ostype: linux install: sudo apt-get update && sudo apt-get install -y libboost-all-dev clang - os: ubuntu-22.04 - build: linux + ostype: linux install: sudo apt-get update && sudo apt-get install -y libboost-all-dev clang - os: ubuntu-20.04 - build: linux + ostype: linux install: sudo apt-get update && sudo apt-get install -y libboost-all-dev clang - os: windows-latest - build: windows + ostype: windows install: | choco install llvm curl -L -o boost.zip https://storage.cmr.dev.br/boost.zip unzip boost.zip -d boost - os: windows-2022 - build: windows + ostype: windows install: | choco install llvm curl -L -o boost.zip https://storage.cmr.dev.br/boost.zip unzip boost.zip -d boost - os: windows-2019 - build: windows + ostype: windows install: | choco install llvm curl -L -o boost.zip https://storage.cmr.dev.br/boost.zip @@ -49,26 +49,26 @@ jobs: uses: actions/checkout@v3 - name: Set up Clang - if: matrix.build == "windows" + if: matrix.ostype == "windows" uses: egor-tensin/setup-clang@v1 - name: Install dependencies run: ${{ matrix.install }} - name: Build - Windows (x64) - if: matrix.build == "windows" && matrix.arch == "x64" + if: matrix.ostype == "windows" && matrix.arch == "x64" run: clang++ -o cmr_cache.exe main.cpp -I./vendor/ -I./boost/ -L./boost/lib -llibboost_system-vc143-mt-x64-1_85 -std=c++17 - name: Build - Windows (x86) - if: matrix.build == "windows" && matrix.arch == "x86" + if: matrix.ostype == "windows" && matrix.arch == "x86" run: clang++ -o cmr_cache.exe main.cpp -I./vendor/ -I./boost/ -L./boost/lib -llibboost_system-vc143-mt-x32-1_85 -std=c++17 -m32 - name: Build - Linux (x64) - if: matrix.build != "windows" && matrix.arch == "x64" + if: matrix.ostype != "windows" && matrix.arch == "x64" run: clang++ -o cmr_cache main.cpp -I./vendor/ -I/usr/include/boost -L/usr/lib/x86_64-linux-gnu -lboost_system -lpthread -std=c++17 - name: Build - Linux (x86) - if: matrix.build != "windows" && matrix.arch == "x86" + if: matrix.ostype != "windows" && matrix.arch == "x86" run: clang++ -o cmr_cache main.cpp -I./vendor/ -I/usr/include/boost -L/usr/lib/i386-linux-gnu -lboost_system -lpthread -std=c++17 -m32 - name: Get the tag @@ -87,7 +87,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Create Release Archive - Windows - if: matrix.build == "windows" + if: matrix.ostype == "windows" run: | mkdir -p release cp cmr_cache.exe release/ @@ -96,7 +96,7 @@ jobs: tar -czf cmr_cache_${{ matrix.os }}_${{ matrix.arch }}.tar.gz release - name: Create Release Archive - Others OS - if: matrix.build != "windows" + if: matrix.ostype != "windows" run: | mkdir -p release cp cmr_cache release/