Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
abari111 committed Oct 28, 2024
1 parent 5361a93 commit 57a7445
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,47 +8,16 @@ on:

jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
compiler: [gcc, clang]
exclude:
- os: windows-latest
compiler: clang # Clang is not available on Windows by default
runs-on: ubuntu-latest

steps:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up build tools
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
- name: Set up GCC
run: |
sudo apt-get update
if [ "${{ matrix.compiler }}" == "gcc" ]; then
sudo apt-get install -y gcc make
else
sudo apt-get install -y clang make
fi
shell: bash

- name: Set up build tools (Windows)
if: matrix.os == 'windows-latest'
run: |
choco install make
if (${{ matrix.compiler }} == 'gcc') {
choco install mingw
}
shell: bash

- name: Configure compiler
run: |
if [ "${{ matrix.compiler }}" == "gcc" ]; then
export CC=gcc
else
export CC=clang
fi
shell: bash
sudo apt-get install -y gcc make
- name: Build the library
run: |
Expand Down

0 comments on commit 57a7445

Please sign in to comment.