-
Notifications
You must be signed in to change notification settings - Fork 101
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
workflow: build eBPF optimizer in container
Signed-off-by: Bin Tang <[email protected]>
- Loading branch information
Showing
3 changed files
with
55 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,7 +12,7 @@ env: | |
jobs: | ||
build: | ||
name: Build and Lint | ||
timeout-minutes: 10 | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
|
@@ -33,17 +33,13 @@ jobs: | |
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
make | ||
make test | ||
make check | ||
make container-test | ||
make container-check | ||
build-optimizer: | ||
name: Build optimizer | ||
timeout-minutes: 10 | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.20.1" | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: cache go mod | ||
|
@@ -55,19 +51,12 @@ jobs: | |
${{ runner.os }}-go | ||
- name: Build | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
rustup component add rustfmt clippy | ||
make build-optimizer | ||
make container-build-optimizer | ||
smoke: | ||
name: Smoke | ||
timeout-minutes: 10 | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19.6" | ||
- name: Check out code | ||
uses: actions/checkout@v3 | ||
- name: cache go mod | ||
|
@@ -118,14 +107,10 @@ jobs: | |
coverage: | ||
name: Code coverage | ||
timeout-minutes: 10 | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
needs: [build] | ||
steps: | ||
- name: Install Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19.6" | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: cache go mod | ||
|
@@ -136,7 +121,7 @@ jobs: | |
restore-keys: | | ||
${{ runner.os }}-go | ||
- name: Run unit tests. | ||
run: make cover | ||
run: make container-cover | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,9 +15,6 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: "1.19.6" | ||
- name: cache go mod | ||
uses: actions/cache@v3 | ||
with: | ||
|
@@ -39,9 +36,7 @@ jobs: | |
${{ runner.os }}-cargo | ||
- name: build nydus-snapshotter and optimizer | ||
run: | | ||
go install github.com/golangci/golangci-lint/cmd/[email protected] | ||
export PATH=$PATH:$(go env GOPATH)/bin | ||
make static-release | ||
make container-static-release | ||
- name: upload artifacts | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
|