From d0dc211c7b77a927c1ea315342239b09e5d8c2fe Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sun, 6 Oct 2024 22:23:26 -0700 Subject: [PATCH] Bump checkout action to v4. --- .github/workflows/coverage.yml | 41 +++++++++++++++++----------------- .github/workflows/darwin.yml | 2 +- .github/workflows/linux.yml | 27 +++++++++++----------- .github/workflows/windows.yml | 2 +- 4 files changed, 35 insertions(+), 37 deletions(-) diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 7aaf317a0..977df6a02 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -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 @@ -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 diff --git a/.github/workflows/darwin.yml b/.github/workflows/darwin.yml index 5029198e8..cc683c0a0 100644 --- a/.github/workflows/darwin.yml +++ b/.github/workflows/darwin.yml @@ -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 diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml index d7386fd9e..c40b65f71 100644 --- a/.github/workflows/linux.yml +++ b/.github/workflows/linux.yml @@ -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 \ No newline at end of file + - name: Test + run: cd build && ctest --output-on-failure diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 2a031b2bd..9f9791f28 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -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