@@ -100,17 +100,23 @@ jobs:
100100 - name : Checkout extensions
101101 uses : actions/checkout@v3
102102
103- - uses : actions/setup-go@v4
104- with :
105- go-version : ' 1.20.4'
106-
107103 - name : Checkout containerd
108104 uses : actions/checkout@v3
109105 with :
110106 repository : containerd/containerd
111107 path : src/github.com/containerd/containerd
112108 ref : ${{ matrix.containerd }}
113109
110+ - name : Get Go Version
111+ run : |
112+ go_version=$(awk -F': ' '/GO_VERSION/ {gsub(/["'\'']/, "", $2); print $2; exit}' .github/workflows/release.yml)
113+ echo "GO_VERSION=$go_version" >> $GITHUB_ENV
114+ working-directory : src/github.com/containerd/containerd
115+
116+ - uses : actions/setup-go@v4
117+ with :
118+ go-version : ${{ env.GO_VERSION }}
119+
114120 - name : Install containerd
115121 env :
116122 GOFLAGS : -modcacherw
@@ -122,7 +128,7 @@ jobs:
122128 sudo -E PATH=$PATH script/setup/install-runc
123129 sudo -E PATH=$PATH script/setup/install-cni $(grep containernetworking/plugins go.mod | awk '{print $2}')
124130 # Install containerd
125- make bin/containerd GO_BUILD_FLAGS="-mod=vendor" BUILDTAGS="no_btrfs no_devmapper"
131+ sudo -E PATH=$PATH make bin/containerd GO_BUILD_FLAGS="-mod=vendor" BUILDTAGS="no_btrfs no_devmapper"
126132 sudo -E PATH=$PATH install bin/containerd /usr/local/bin/
127133 working-directory : src/github.com/containerd/containerd
128134
@@ -131,6 +137,11 @@ jobs:
131137 cargo build --release --bin containerd-shim-runc-v2-rs
132138 sudo install -D ./target/release/containerd-shim-runc-v2-rs /usr/local/bin/
133139
140+ # # get latest go version for integrations tests so we can skip runnings tests
141+ - uses : actions/setup-go@v4
142+ with :
143+ go-version : ' 1.20.4'
144+
134145 - name : Integration
135146 env :
136147 GOPROXY : direct
0 commit comments