actions UPDATE use ubuntu 22.04
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 4bfcc02..1c58058 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -18,49 +18,50 @@
matrix:
config:
- {
- name: "Release, Ubuntu 18.04, gcc",
- os: "ubuntu-18.04",
+ name: "Release, gcc",
+ os: "ubuntu-22.04",
build-type: "Release",
cc: "gcc",
options: "-DENABLE_TESTS=ON",
packager: "sudo apt-get",
- packages: "libcmocka-dev shunit2",
+ packages: "libcmocka-dev shunit2 expect",
snaps: "",
make-prepend: "",
make-target: ""
}
- {
- name: "Release, Ubuntu 18.04, clang",
- os: "ubuntu-18.04",
+ name: "Release, clang",
+ os: "ubuntu-22.04",
build-type: "Release",
cc: "clang",
options: "-DENABLE_TESTS=ON",
packager: "sudo apt-get",
- packages: "libcmocka-dev shunit2",
+ packages: "libcmocka-dev shunit2 expect",
snaps: "",
make-prepend: "",
make-target: ""
}
- {
- name: "Debug, Ubuntu 18.04, gcc",
- os: "ubuntu-18.04",
+ name: "Debug, gcc",
+ os: "ubuntu-22.04",
build-type: "Debug",
cc: "gcc",
options: "",
packager: "sudo apt-get",
- packages: "libcmocka-dev valgrind shunit2",
+ packages: "libcmocka-dev valgrind shunit2 expect",
snaps: "",
make-prepend: "",
make-target: ""
}
- {
- name: "Debug, Ubuntu 18.04, clang",
- os: "ubuntu-18.04",
+ name: "Debug, clang",
+ os: "ubuntu-22.04",
build-type: "Debug",
cc: "clang",
options: "",
packager: "sudo apt-get",
- packages: "libcmocka-dev valgrind shunit2",
+ # no valgrind because it does not support DWARF5 yet generated by clang 14
+ packages: "libcmocka-dev shunit2 expect",
snaps: "",
make-prepend: "",
make-target: ""
@@ -78,10 +79,10 @@
make-target: ""
}
- {
- name: "ASAN and UBSAN, clang 14",
+ name: "ASAN and UBSAN",
os: "ubuntu-22.04",
build-type: "Debug",
- cc: "clang-14",
+ cc: "clang",
options: "-DCMAKE_C_FLAGS=-fsanitize=address,undefined -DENABLE_TESTS=ON -DENABLE_VALGRIND_TESTS=OFF",
packager: "sudo apt-get",
packages: "libcmocka-dev",
@@ -91,7 +92,7 @@
}
- {
name: "ABI Check",
- os: "ubuntu-latest",
+ os: "ubuntu-22.04",
build-type: "ABICheck",
cc: "gcc",
options: "",
@@ -103,7 +104,7 @@
}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Deps-packages
shell: bash
@@ -127,7 +128,7 @@
CC=${{ matrix.config.cc }} cmake ..
make
sudo make install
- if: ${{ matrix.config.name == 'Debug, Ubuntu 18.04, gcc' }}
+ if: ${{ matrix.config.name == 'Debug, gcc' }}
- name: Configure
shell: bash
@@ -182,11 +183,11 @@
run: |
git config --global core.eol ${{ matrix.eol }}
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Get number of CPU cores
id: cpu-cores
- uses: SimenB/github-actions-cpu-cores@5e7112c2e8c5b63b649a678bc2fb5920d0c8202e
+ uses: SimenB/github-actions-cpu-cores@v1
- name: Install Windows dependencies
run: vcpkg install --triplet=${{ matrix.triplet }} pcre2 pthreads dirent dlfcn-win32 cmocka getopt
diff --git a/.github/workflows/devel-push.yml b/.github/workflows/devel-push.yml
index 561bb53..7dddc13 100644
--- a/.github/workflows/devel-push.yml
+++ b/.github/workflows/devel-push.yml
@@ -8,24 +8,9 @@
COVERITY_PROJECT: CESNET%2Flibyang
jobs:
- git-branch:
- name: Get git branch
- runs-on: ubuntu-18.04
- outputs:
- branch-name: ${{ steps.get-git-branch.outputs.branch-name }}
- steps:
- - id: get-git-branch
- run: |
- if ${{ github.event_name == 'push' }}
- then export GIT_BRANCH=`echo ${{ github.ref }} | cut -d'/' -f 3`
- else
- export GIT_BRANCH=${{ github.base_ref }}
- fi
- echo "::set-output name=branch-name::$GIT_BRANCH"
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
- needs: git-branch
strategy:
fail-fast: false
matrix:
@@ -56,7 +41,7 @@
}
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Deps-packages
shell: bash