From 4981573db200ca1516e9f0595baa04c66b53223b Mon Sep 17 00:00:00 2001 From: Caleb Cartwright Date: Sun, 24 Apr 2022 11:43:20 -0500 Subject: [PATCH] ci: get jammy with it --- .github/workflows/pr.yml | 49 ++++++++++++++++++++++++++++++++-------- 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index e289c03..a164cf8 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -29,10 +29,24 @@ jobs: lint: name: lint runs-on: ubuntu-latest + container: + image: ubuntu:jammy + steps: - name: Checkout uses: actions/checkout@v2 + - name: Install tools + run: | + apt update + apt install -y \ + libgtk-3-dev \ + build-essential \ + libssl-dev \ + openssl \ + pkg-config\ + curl + - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -40,9 +54,6 @@ jobs: toolchain: stable override: true - - name: Install tools - run: sudo apt update && sudo apt install libgtk-3-dev -y - - name: Add clippy run: rustup component add clippy @@ -52,10 +63,23 @@ jobs: tests: name: tests runs-on: ubuntu-latest + container: + image: ubuntu:jammy steps: - name: Checkout uses: actions/checkout@v2 + - name: Install tools + run: | + apt update + apt install -y \ + libgtk-3-dev \ + build-essential \ + libssl-dev \ + openssl \ + pkg-config\ + curl + - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -63,9 +87,6 @@ jobs: toolchain: stable override: true - - name: Install tools - run: sudo apt update && sudo apt install libgtk-3-dev -y - # TODO: incorporate code coverage with tarpaulin or grcov - name: Run tests uses: actions-rs/cargo@v1 @@ -76,10 +97,23 @@ jobs: compile: name: build runs-on: ubuntu-latest + container: + image: ubuntu:jammy steps: - name: Checkout uses: actions/checkout@v2 + - name: Install tools + run: | + apt update + apt install -y \ + libgtk-3-dev \ + build-essential \ + libssl-dev \ + openssl \ + pkg-config\ + curl + - name: Install Rust uses: actions-rs/toolchain@v1 with: @@ -87,9 +121,6 @@ jobs: toolchain: stable override: true - - name: Install tools - run: sudo apt update && sudo apt install libgtk-3-dev -y - - name: Compile uses: actions-rs/cargo@v1 with: