Skip to content

Commit

Permalink
Merge pull request #114 from snprajwal/fix-protoc-gen-go
Browse files Browse the repository at this point in the history
ci: fix protoc-gen-go path for go install
  • Loading branch information
adrianreber authored Apr 15, 2023
2 parents 43834cc + 51b1809 commit 83fc137
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on: [push, pull_request]

jobs:
test:
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -13,35 +13,35 @@ jobs:

steps:

- name: checkout
- name: Checkout
uses: actions/checkout@v3
with:
# needed for codecov
fetch-depth: 0

- name: build criu ${{ matrix.criu_branch }}
- name: Build CRIU ${{ matrix.criu_branch }}
run: |
sudo apt-get install -y libprotobuf-dev libprotobuf-c-dev protobuf-c-compiler protobuf-compiler python3-protobuf libnl-3-dev libnet-dev libcap-dev curl unzip
git clone --depth=1 --single-branch -b ${{ matrix.criu_branch }} https://github.com/checkpoint-restore/criu.git
make -j"$(nproc)" -C criu
sudo make -C criu install-criu PREFIX=/usr
- name: install go ${{ matrix.go-version }}
- name: Install Go ${{ matrix.go-version }}
uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go-version }}

- name: Install protoc-gen-go
run: |
sudo env "GOBIN=/usr/bin" go install github.com/golang/protobuf/protoc-gen-go@latest
sudo env "GOBIN=/usr/bin" go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
- name: Test go-criu
run: sudo -E make test

- name: Test magicgen script
run: sudo -E make -C scripts test

- name: Test crit
- name: Test CRIT
run: |
if [ "${{ matrix.criu_branch }}" = "criu-dev" ]; then
# We need to use the protobuf definitions from the criu-dev
Expand Down

0 comments on commit 83fc137

Please sign in to comment.