Skip to content

Commit

Permalink
Update GitHub Action workflows for new runner
Browse files Browse the repository at this point in the history
  • Loading branch information
arkq committed Jul 8, 2023
1 parent aae37b7 commit 3a75712
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 24 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-18.04
- ubuntu-20.04
- ubuntu-latest
features:
- --enable-debug --enable-manpages
Expand All @@ -17,13 +17,13 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install --yes --quiet --no-install-recommends \
libcurl4-openssl-dev \
libnotify-dev \
python-docutils
- uses: actions/checkout@v2
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
libcurl4-openssl-dev
libnotify-dev
python3-docutils
- uses: actions/checkout@v3
- name: Create Build Environment
run: |
mkdir -p ${{ github.workspace }}/build
Expand Down
28 changes: 12 additions & 16 deletions .github/workflows/codeql-analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,29 +3,25 @@ on:
push:
pull_request:
branches: [ master ]
permissions:
actions: read
contents: read
security-events: write
jobs:
analyze:
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
language: [ 'cpp' ]
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Install Dependencies
run: |
sudo apt update
sudo apt install --yes --quiet --no-install-recommends \
libcurl4-openssl-dev \
uses: awalsh128/cache-apt-pkgs-action@v1
with:
packages: >
libcurl4-openssl-dev
libnotify-dev
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
with:
languages: ${{ matrix.language }}
languages: cpp
queries: security-and-quality
- name: Create Build Environment
run: |
Expand All @@ -40,4 +36,4 @@ jobs:
working-directory: ${{ github.workspace }}/build
run: make
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v2

0 comments on commit 3a75712

Please sign in to comment.