Skip to content

Commit

Permalink
Merge pull request #1028 from gliptak/ubuntu20
Browse files Browse the repository at this point in the history
Build on ubuntu-20.04
  • Loading branch information
mapkon authored Apr 13, 2023
2 parents 1e24937 + aa94c9e commit 434bee2
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, macos-11]
os: [ubuntu-20.04, macOS-latest, macos-11]
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
Expand Down Expand Up @@ -40,7 +40,7 @@ jobs:

linting:
name: lint
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v4
Expand All @@ -59,7 +59,7 @@ jobs:
name: coverage
permissions:
contents: read
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [build]
steps:
- uses: actions/checkout@v3
Expand All @@ -80,7 +80,7 @@ jobs:
strategy:
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
runs-on: ${{ matrix.os }}
steps:
Expand All @@ -93,7 +93,7 @@ jobs:
uses: actions/checkout@v3

- name: Install dependency required for linux builds
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libudev-dev

- name: GoReleaser
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
max-parallel: 1
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
runs-on: ${{ matrix.os }}
if: github.event_name != 'workflow_dispatch'
Expand All @@ -34,7 +34,7 @@ jobs:
uses: actions/checkout@v3

- name: Install dependency required for linux builds
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-20.04'
run: sudo apt-get update && sudo apt-get install -y libudev-dev

- name: GoReleaser
Expand All @@ -47,7 +47,7 @@ jobs:

windows-msi:
name: Build Windows MSI and upload to release
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
needs: [release]
if: >- # https://github.com/actions/runner/issues/491
always() &&
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ endif
ifeq ($(OS),Darwin)
goreleaser build --snapshot --clean --config $(CURDIR)/.goreleaser.macos-latest.yml
else ifeq ($(OS),Linux)
goreleaser build --snapshot --clean --config $(CURDIR)/.goreleaser.ubuntu-latest.yml
goreleaser build --snapshot --clean --config $(CURDIR)/.goreleaser.ubuntu-20.04.yml
else
$(error Unsupported build OS: $(OS))
endif
Expand Down

0 comments on commit 434bee2

Please sign in to comment.