Skip to content

Commit

Permalink
💚 fix: os type
Browse files Browse the repository at this point in the history
  • Loading branch information
camargo2019 committed Sep 14, 2024
1 parent c6b38be commit d1a803b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/
Expand All @@ -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/
Expand Down

0 comments on commit d1a803b

Please sign in to comment.