Skip to content

Commit

Permalink
build on mac & linux
Browse files Browse the repository at this point in the history
  • Loading branch information
pmqs committed Feb 6, 2024
1 parent a6393e9 commit 0bba4e0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/c-std.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ on:

jobs:
configure:
name: ${{ matrix.compiler }} + ${{ matrix.builder }} -std=${{ matrix.std }}
name: ${{ matrix.os }} + ${{ matrix.compiler }} + ${{ matrix.builder }} -std=${{ matrix.std }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest

compiler:
- gcc
Expand Down Expand Up @@ -45,6 +46,7 @@ jobs:
show-progress: 'false'

- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
Expand Down Expand Up @@ -86,7 +88,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure() && matrix.builder == 'configure'
with:
name: ${{ matrix.compiler }} ${{ matrix.std }} (configure)
name: ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.std }} (configure)
path: |
./configure.log
if-no-files-found: ignore
Expand All @@ -96,7 +98,7 @@ jobs:
uses: actions/upload-artifact@v4
if: failure() && matrix.builder == 'cmake'
with:
name: ${{ matrix.compiler }} ${{ matrix.std }} (cmake)
name: ${{ matrix.os }} ${{ matrix.compiler }} ${{ matrix.std }} (cmake)
path: |
**/CMakeFiles/CMakeOutput.log
**/CMakeFiles/CMakeError.log
Expand Down

0 comments on commit 0bba4e0

Please sign in to comment.