Skip to content

Commit

Permalink
Merge pull request #276 from crazy-max/ci-bump-os
Browse files Browse the repository at this point in the history
ci: bump runners to ubuntu-22.04
  • Loading branch information
thaJeztah authored May 27, 2023
2 parents 4ede49c + 62d8c84 commit 9ff5b61
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ env:

jobs:
validate:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
Expand All @@ -44,6 +44,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-22.04
- ubuntu-20.04
- macOS-11
- windows-2022
Expand All @@ -59,13 +60,13 @@ jobs:
cache: true
-
name: Install deps
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt-get update
sudo apt-get install -y dbus-x11 gnome-keyring libsecret-1-dev pass
-
name: GPG conf
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: startsWith(matrix.os, 'ubuntu-')
uses: actions/github-script@v6
id: gpg
with:
Expand All @@ -82,15 +83,15 @@ jobs:
core.setOutput('passphrase', fs.readFileSync('.github/workflows/fixtures/7D851EB72D73BDA0.pass', {encoding: 'utf8'}));
-
name: Import GPG key
if: ${{ matrix.os == 'ubuntu-20.04' }}
if: startsWith(matrix.os, 'ubuntu-')
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ steps.gpg.outputs.key }}
passphrase: ${{ steps.gpg.outputs.passphrase }}
-
name: Test
run: |
if [ "${{ matrix.os }}" = "ubuntu-20.04" ]; then
if [[ "${{ matrix.os }}" = ubuntu-* ]]; then
echo -e "trust\n5\ny" | gpg --batch --no-tty --command-fd 0 --edit-key 7D851EB72D73BDA0
pass init 7D851EB72D73BDA0
fi
Expand All @@ -104,7 +105,7 @@ jobs:
file: ./coverage.txt

test-sandboxed:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: Checkout
Expand All @@ -127,7 +128,7 @@ jobs:
file: ${{ env.DESTDIR }}//coverage.txt

build:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: Checkout
Expand Down Expand Up @@ -173,7 +174,7 @@ jobs:
files: ${{ env.DESTDIR }}/*

build-deb:
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
-
name: Checkout
Expand Down

0 comments on commit 9ff5b61

Please sign in to comment.