Skip to content

Commit

Permalink
Bump checkout action to v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamore committed Oct 7, 2024
1 parent 7dd81b3 commit d0dc211
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 37 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,38 +1,37 @@
name: coverage
on: [push]
jobs:

linux-coverage:
name: linux
runs-on: [ ubuntu-latest ]
runs-on: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Check out code
uses: actions/checkout@v4

- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev
- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev

- name: Install ninja
run: sudo apt-get install ninja-build
- name: Install ninja
run: sudo apt-get install ninja-build

- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..
- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..

- name: build
run: cd build && ninja
- name: build
run: cd build && ninja

- name: Test
run: cd build && ctest --output-on-failure
- name: Test
run: cd build && ctest --output-on-failure

- name: Upload report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
yml: ./.codecov.yml
- name: Upload report
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
yml: ./.codecov.yml

darwin-coverage:
name: darwin
runs-on: [ macos-latest ]
runs-on: [macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
Expand All @@ -47,7 +46,7 @@ jobs:
run: brew install lcov

- name: Configure
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..
run: mkdir build && cd build && cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DNNG_ENABLE_COVERAGE=ON -DNNG_ENABLE_TLS=ON ..

- name: build
run: cd build && ninja
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/darwin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: [macos-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: Install Mbed TLS
run: brew install mbedtls
Expand Down
27 changes: 13 additions & 14 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
name: linux
on: [push, pull_request]
jobs:

build:
name: build
runs-on: [ ubuntu-latest ]
runs-on: [ubuntu-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Check out code
uses: actions/checkout@v4

- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev
- name: Install mbedTLS
run: sudo apt-get install libmbedtls-dev

- name: Install ninja
run: sudo apt-get install ninja-build
- name: Install ninja
run: sudo apt-get install ninja-build

- name: Configure
run: mkdir build && cd build && cmake -G Ninja -D NNG_ENABLE_TLS=ON ..
- name: Configure
run: mkdir build && cd build && cmake -G Ninja -D NNG_ENABLE_TLS=ON ..

- name: Build
run: cd build && ninja
- name: Build
run: cd build && ninja

- name: Test
run: cd build && ctest --output-on-failure
- name: Test
run: cd build && ctest --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: [windows-latest]
steps:
- name: Check out code
uses: actions/checkout@v1
uses: actions/checkout@v4

- name: vcpkg build
id: vcpkg
Expand Down

0 comments on commit d0dc211

Please sign in to comment.