Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump checkout action to v4. #1882

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading