Skip to content

Commit

Permalink
Update go version (l3af-project#297)
Browse files Browse the repository at this point in the history
* updating go version

Signed-off-by: Atul-source <atulprajapati6031@gmail.com>
Signed-off-by: sferna1 <santhosh.fernandes@gmail.com>
  • Loading branch information
Atul-source authored and sanfern committed Oct 24, 2023
1 parent d7bea55 commit 2b26adb
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 63 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/ci-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ permissions:
jobs:
build:
runs-on: windows-latest

steps:
- name: Setup Go 1.18.6
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
- name: Setup Go 1.21.3
uses: actions/setup-go@bfd2fb341f32be7281829126376a12a780ca79fc
with:
go-version: '1.18.6'
go-version: '1.21.3'

- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

Expand All @@ -38,8 +38,8 @@ jobs:
echo "GOPATH=$gopath" >> $env:GITHUB_ENV
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608

- name: Format
run: |
go install golang.org/x/tools/cmd/goimports@latest
Expand All @@ -54,15 +54,16 @@ jobs:
- name: Vet
run: |
go vet -tags WINDOWS ./...
- name: Test
run: |
go test -tags WINDOWS ./...
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc
with:
version: "2022.1.1"
version: "2023.1.1"
install-go: false
cache-key: "1.21.x"
build-tags: WINDOWS

- name: Build
Expand Down
18 changes: 10 additions & 8 deletions .github/workflows/ci-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@ jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Setup Go 1.18.6
uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe
- name: Setup Go 1.21.3
uses: actions/setup-go@bfd2fb341f32be7281829126376a12a780ca79fc
with:
go-version: '1.18.6'
go-version: '1.21.3'

- name: Harden Runner
uses: step-security/harden-runner@1b05615854632b887b69ae1be8cbefe72d3ae423
with:
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs

- name: Set up environment
run : |
run: |
sudo apt-get update
sudo apt-get install gcc libc-dev bash perl curl make
- name: Checkout repository
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608

- name: Format
run: |
Expand All @@ -56,11 +56,13 @@ jobs:
- name: Test
run: |
go test ./...
go clean -modcache
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc
- uses: dominikh/staticcheck-action@ba605356b4b29a60e87ab9404b712f3461e566dc
with:
version: "2022.1.1"
version: "2023.1.1"
install-go: false
cache-key: "1.21.x"

- name: Build
run: |
Expand Down
34 changes: 17 additions & 17 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
module github.com/l3af-project/l3afd

go 1.18
go 1.21

require (
github.com/cilium/ebpf v0.11.0
github.com/cilium/ebpf v0.12.0
github.com/go-chi/chi/v5 v5.0.10
github.com/mitchellh/go-ps v1.0.0
github.com/prometheus/client_golang v1.17.0
Expand All @@ -12,7 +12,7 @@ require (
github.com/safchain/ethtool v0.3.0
github.com/swaggo/http-swagger v1.3.4
github.com/swaggo/swag v1.16.2
golang.org/x/sys v0.12.0 // exclude
golang.org/x/sys v0.13.0 // exclude
)

require (
Expand All @@ -24,28 +24,28 @@ require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/jsonpointer v0.20.0 // indirect
github.com/go-openapi/jsonreference v0.20.2 // indirect
github.com/go-openapi/spec v0.20.8 // indirect
github.com/go-openapi/swag v0.22.3 // indirect
github.com/go-openapi/spec v0.20.9 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/golang/protobuf v1.5.3 // indirect
github.com/google/go-cmp v0.5.9 // indirect
github.com/google/go-cmp v0.6.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/josharian/native v1.1.0 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/matttproud/golang_protobuf_extensions v1.0.4 // indirect
github.com/mdlayher/netlink v1.6.0 // indirect
github.com/mdlayher/socket v0.1.1 // indirect
github.com/prometheus/client_model v0.4.1-0.20230718164431-9a2bf3000d16 // indirect
github.com/mdlayher/netlink v1.7.2 // indirect
github.com/mdlayher/socket v0.5.0 // indirect
github.com/prometheus/client_model v0.5.0 // indirect
github.com/prometheus/common v0.44.0 // indirect
github.com/prometheus/procfs v0.11.1 // indirect
github.com/swaggo/files v0.0.0-20220728132757-551d4a08d97a // indirect
golang.org/x/exp v0.0.0-20230224173230-c95f2b4c22f2 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/tools v0.8.0 // indirect
github.com/prometheus/procfs v0.12.0 // indirect
github.com/swaggo/files v1.0.1 // indirect
golang.org/x/exp v0.0.0-20231006140011-7918f672742d // indirect
golang.org/x/net v0.17.0 // indirect
golang.org/x/sync v0.4.0 // indirect
golang.org/x/tools v0.14.0 // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)

0 comments on commit 2b26adb

Please sign in to comment.