fix: don't restart github action service after apt install
By default apt-get seems to restart services now, but that restarts the github actions runner and cancels our job... Add the github actions service to the exluded services. See also https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
This commit is contained in:
parent
3d92428b7e
commit
de5f454218
|
|
@ -49,7 +49,6 @@ jobs:
|
||||||
path: coverage_dir/
|
path: coverage_dir/
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
|
||||||
coverage:
|
coverage:
|
||||||
runs-on: arm-ubuntu-latest-16core
|
runs-on: arm-ubuntu-latest-16core
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -61,6 +60,10 @@ jobs:
|
||||||
architecture: "arm64"
|
architecture: "arm64"
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
|
# Prevent restarting the github actions service on package upgrades
|
||||||
|
# See https://discourse.ubuntu.com/t/needrestart-changes-in-ubuntu-24-04-service-restarts/44671
|
||||||
|
echo '$nrconf{override_rc}{qr(^actions.runner.*.service$)} = 0;' | sudo tee /etc/needrestart/conf.d/githubactions.conf
|
||||||
|
|
||||||
sudo apt-get update && sudo apt-get install --no-install-recommends --no-install-suggests -y lcov libsqlite3-0 libsqlite3-dev libolm3 libssl3
|
sudo apt-get update && sudo apt-get install --no-install-recommends --no-install-suggests -y lcov libsqlite3-0 libsqlite3-dev libolm3 libssl3
|
||||||
./scripts/test.sh
|
./scripts/test.sh
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
|
|
@ -70,7 +73,6 @@ jobs:
|
||||||
path: coverage_dir/
|
path: coverage_dir/
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
|
|
||||||
merge_converage:
|
merge_converage:
|
||||||
if: ${{ !cancelled() }}
|
if: ${{ !cancelled() }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue