Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub actions CI workflow #99

Merged
merged 3 commits into from
Nov 10, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:

checks:
name: Project Checks
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
timeout-minutes: 5

steps:
- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: 1.19

Expand All @@ -24,12 +24,12 @@ jobs:
echo "GOPATH=${{ github.workspace }}" >> $GITHUB_ENV
echo "${{ github.workspace }}/bin" >> $GITHUB_PATH

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/imgcrypt
fetch-depth: 25

- uses: containerd/project-checks@v1
- uses: containerd/project-checks@v1.1.0
with:
working-directory: src/github.com/containerd/imgcrypt

Expand All @@ -40,10 +40,10 @@ jobs:

strategy:
matrix:
os: [ubuntu-18.04]
os: [ubuntu-22.04]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/imgcrypt

Expand All @@ -62,24 +62,24 @@ jobs:
strategy:
matrix:
go: [1.18, 1.19]
os: [ubuntu-18.04, windows-2019]
os: [ubuntu-22.04, windows-2022]

name: Tests / ${{ matrix.os }} / ${{ matrix.go }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
needs: [linters, checks]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
repository: containerd/containerd
path: src/github.com/containerd/containerd

- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
path: src/github.com/containerd/imgcrypt

- uses: actions/setup-go@v2
- uses: actions/setup-go@v3
with:
go-version: ${{ matrix.go }}

Expand All @@ -99,8 +99,8 @@ jobs:
shell: bash
if: ${{ startsWith(matrix.os, 'ubuntu-') }}
run: |
sudo apt update
sudo apt install gnutls-bin softhsm2 libseccomp-dev
sudo apt-get update
sudo apt-get install -y gnutls-bin softhsm2 libseccomp-dev libbtrfs-dev
make binaries
sudo make install
sudo rm /usr/local/bin/ctr
Expand Down