Skip to content

Commit

Permalink
ci: Pin linux version. (#514)
Browse files Browse the repository at this point in the history
This commit selects a specific version of Ubuntu at the latest. Mostly
because Jammy has updated versions of libwebp-dev and I am hoping it
fixes the main build: https://packages.ubuntu.com/jammy/libwebp-dev
  • Loading branch information
betterengineering authored Dec 6, 2022
1 parent 195cb3c commit d1809f0
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 34 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ on:
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
actions: read
contents: read
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

Expand All @@ -28,7 +28,7 @@ jobs:
name: Build and Test Release Artifacts
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-22.04, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -58,7 +58,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
run: sudo ./scripts/setup-linux.sh

- name: Install macOS dependencies
Expand All @@ -73,7 +73,7 @@ jobs:

- name: Build
run: make build
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest'

- name: Build Windows
shell: msys2 {0}
Expand All @@ -82,7 +82,7 @@ jobs:

- name: Test
run: make test
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest'

- name: Test Windows
shell: msys2 {0}
Expand All @@ -92,7 +92,7 @@ jobs:
- name: Set pixlet version
id: vars
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/}
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest'

- name: Set Windows pixlet version
id: windowsvars
Expand All @@ -101,7 +101,7 @@ jobs:
if: matrix.os == 'windows-latest'

- name: Build Release Linux
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
run: make release-linux
env:
PIXLET_VERSION: ${{ steps.vars.outputs.tag }}
Expand All @@ -127,7 +127,7 @@ jobs:

create-release:
name: Create Github Release
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
environment: release
needs: build-and-test-release
if: startsWith(github.ref, 'refs/tags/')
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

jobs:
lint:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3

Expand All @@ -26,7 +26,7 @@ jobs:
name: Build and Test
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
os: [ubuntu-22.04, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:
uses: actions/checkout@v3

- name: Install Linux dependencies
if: matrix.os == 'ubuntu-latest'
if: matrix.os == 'ubuntu-22.04'
run: sudo apt-get install -y libwebp-dev

- name: Install macOS dependencies
Expand All @@ -71,7 +71,7 @@ jobs:

- name: Build
run: make build
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest'

- name: Build Windows
shell: msys2 {0}
Expand All @@ -80,7 +80,7 @@ jobs:

- name: Test
run: make test
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
if: matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-latest'

- name: Test Windows
shell: msys2 {0}
Expand Down
40 changes: 20 additions & 20 deletions scripts/setup-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,27 @@ set -e
dpkg --add-architecture arm64

cat <<EOT > /etc/apt/sources.list
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal main restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates main restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal universe
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates universe
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-updates multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ focal-security main restricted
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ focal-security universe
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ focal-security multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy main restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy universe
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates universe
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-updates multiverse
deb [arch=amd64] http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security main restricted
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security universe
deb [arch=amd64] http://security.ubuntu.com/ubuntu/ jammy-security multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-updates multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports focal-security multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-updates multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security main restricted
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security universe
deb [arch=arm64] http://ports.ubuntu.com/ubuntu-ports jammy-security multiverse
EOT

apt-get update
Expand Down

0 comments on commit d1809f0

Please sign in to comment.