Skip to content

Commit

Permalink
Updated GHA actions
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Jun 1, 2024
1 parent bce04bb commit 5df529e
Show file tree
Hide file tree
Showing 13 changed files with 38 additions and 30 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test-deb.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -98,7 +98,7 @@ jobs:
# i386 supports actions/checkout@v1 only (no Node.js 32-bit binary)
# and and actions/checkout@v1 has some issues with nested repositories
if: startsWith(matrix.image, 'amd64')
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ${{github.workspace}}/tests/shunit2
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test-msys.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
shared: [on, off]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down Expand Up @@ -77,7 +77,7 @@ jobs:
run: ctest --test-dir build --output-on-failure

- name: Checkout shell test framework
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ${{ github.workspace }}/tests/shunit2
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/build-and-test-rh.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
strategy:
fail-fast: false
matrix:
image: [ 'centos:7', 'tgagor/centos:stream8', 'quay.io/centos/centos:stream9', 'fedora:35', 'fedora:36' ]
image: [ 'centos:7', 'tgagor/centos:stream8', 'quay.io/centos/centos:stream9', 'fedora:35', 'fedora:36', 'fedora:38' ]
env: [ {CC: gcc, CXX: g++}, {CC: clang, CXX: clang++} ]
shared: [ on, off ]
container: ${{ matrix.image }}
Expand All @@ -61,6 +61,14 @@ jobs:
run: yum -y install sudo git gcc gcc-c++ make cmake clang

- name: Checkout
if: matrix.image != 'centos:7'
uses: actions/checkout@v4
with:
fetch-depth: 1

# CentOS 7 doesn't support node.js:20. To be removed once it is EOLed at June, 2024.
- name: Checkout centos:7
if: matrix.image == 'centos:7'
uses: actions/checkout@v3
with:
fetch-depth: 1
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
env: ${{ matrix.env }}
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -77,7 +77,7 @@ jobs:
run: ctest --test-dir build --output-on-failure

- name: Checkout shell test framework
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ${{github.workspace}}/tests/shunit2
Expand All @@ -94,7 +94,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
CXX: clang++
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -50,7 +50,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
MAKEFLAGS: j4
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/coverity.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:
COVERITY_TOKEN: qjcM1CWLcq9PJB3yL0ZXIw
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -60,4 +60,4 @@ jobs:
with:
email: maxirmx@sw.consulting
token: ${{ env.COVERITY_TOKEN }}
command: cmake --build build
command: cmake --build build
6 changes: 3 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
clang-format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.11
with:
source: '.'
Expand All @@ -52,5 +52,5 @@ jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ludeeus/action-shellcheck@master
6 changes: 3 additions & 3 deletions .github/workflows/nix.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
# Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy of
# this software and associated documentation files (the "Software"), to deal in
Expand Down Expand Up @@ -41,7 +41,7 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

Expand All @@ -54,7 +54,7 @@ jobs:
run: nix build

- name: Checkout shell test framework
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
repository: kward/shunit2
path: ${{github.workspace}}/tests/shunit2
Expand Down
4 changes: 2 additions & 2 deletions include/sexpp/sexp.h
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ class SEXP_PUBLIC_SYMBOL sexp_simple_string_t : public std::vector<octet_t>,
private sexp_char_defs_t {
public:
sexp_simple_string_t(void) = default;
sexp_simple_string_t(const octet_t *dt) : std::vector<octet_t>() { for (; *dt; ++dt) push_back(*dt); }
sexp_simple_string_t(const octet_t *bt, size_t ln) : std::vector<octet_t>(ln) { for (size_t s = 0; s < ln; ++bt, ++s ) push_back(*bt); }
sexp_simple_string_t(const octet_t *dt);
sexp_simple_string_t(const octet_t *bt, size_t ln);
sexp_simple_string_t &append(int c)
{
push_back((octet_t)(c & 0xFF));
Expand Down
2 changes: 1 addition & 1 deletion src/sexp-input.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
* Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion src/sexp-simple-string.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
* Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down
2 changes: 1 addition & 1 deletion tests/src/primitives-tests.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
*
* Copyright 2021-2023 Ribose Inc. (https://www.ribose.com)
* Copyright 2021-2024 Ribose Inc. (https://www.ribose.com)
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
Expand Down

0 comments on commit 5df529e

Please sign in to comment.