Skip to content

Commit 1f50416

Browse files
committed
Update nightly CI
Signed-off-by: Maksym Pavlenko <[email protected]>
1 parent 5151336 commit 1f50416

1 file changed

Lines changed: 32 additions & 26 deletions

File tree

.github/workflows/nightly.yml

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,24 @@ jobs:
1111
name: Linux
1212
runs-on: ubuntu-latest
1313

14+
defaults:
15+
run:
16+
working-directory: src/github.com/containerd/containerd
17+
1418
steps:
15-
- name: Set up Go
16-
uses: actions/setup-go@v1
19+
- uses: actions/setup-go@v1
1720
with:
1821
go-version: '1.15.2'
1922

20-
- name: Checkout
21-
uses: actions/checkout@v1
22-
env:
23-
GOPATH: ${{ runner.workspace }}
24-
GO111MODULE: off
23+
- uses: actions/checkout@v2
2524
with:
26-
path: ./src/github.com/containerd/containerd
25+
path: src/github.com/containerd/containerd
26+
27+
- name: Set env
28+
shell: bash
29+
run: |
30+
echo "::set-env name=GOPATH::${{ github.workspace }}"
31+
echo "::add-path::${{ github.workspace }}/bin"
2732
2833
#
2934
# Build
@@ -51,7 +56,6 @@ jobs:
5156
5257
- name: Build amd64
5358
env:
54-
GOPATH: ${{ runner.workspace }}
5559
GOOS: linux
5660
GOARCH: amd64
5761
run: |
@@ -60,7 +64,6 @@ jobs:
6064
6165
- name: Build arm64
6266
env:
63-
GOPATH: ${{ runner.workspace }}
6467
GOOS: linux
6568
GOARCH: arm64
6669
CC: aarch64-linux-gnu-gcc
@@ -71,7 +74,6 @@ jobs:
7174
7275
- name: Build s390x
7376
env:
74-
GOPATH: ${{ runner.workspace }}
7577
GOOS: linux
7678
GOARCH: s390x
7779
CGO_ENABLED: 1
@@ -82,7 +84,6 @@ jobs:
8284
8385
- name: Build ppc64le
8486
env:
85-
GOPATH: ${{ runner.workspace }}
8687
GOOS: linux
8788
GOARCH: ppc64le
8889
CGO_ENABLED: 1
@@ -99,46 +100,51 @@ jobs:
99100
uses: actions/upload-artifact@v1
100101
with:
101102
name: linux_amd64
102-
path: bin_amd64
103+
path: src/github.com/containerd/containerd/bin_amd64
103104

104105
- name: Upload artifacts (linux_arm64)
105106
uses: actions/upload-artifact@v1
106107
with:
107108
name: linux_arm64
108-
path: bin_arm64
109+
path: src/github.com/containerd/containerd/bin_arm64
109110

110111
- name: Upload artifacts (linux_s390x)
111112
uses: actions/upload-artifact@v1
112113
with:
113114
name: linux_s390x
114-
path: bin_s390x
115+
path: src/github.com/containerd/containerd/bin_s390x
115116

116117
- name: Upload artifacts (linux_ppc64le)
117118
uses: actions/upload-artifact@v1
118119
with:
119120
name: linux_ppc64le
120-
path: bin_ppc64le
121+
path: src/github.com/containerd/containerd/bin_ppc64le
121122

122123
windows:
123124
name: Windows
124125
runs-on: windows-latest
126+
127+
defaults:
128+
run:
129+
working-directory: src/github.com/containerd/containerd
130+
125131
steps:
126-
- name: Set up Go
127-
uses: actions/setup-go@v1
132+
- uses: actions/setup-go@v1
128133
with:
129134
go-version: '1.15.2'
130135

131-
- name: Checkout
132-
uses: actions/checkout@v1
133-
env:
134-
GOPATH: ${{ runner.workspace }}
135-
GO111MODULE: off
136+
- uses: actions/checkout@v2
136137
with:
137-
path: ./src/github.com/containerd/containerd
138+
path: src/github.com/containerd/containerd
139+
140+
- name: Set env
141+
shell: bash
142+
run: |
143+
echo "::set-env name=GOPATH::${{ github.workspace }}"
144+
echo "::add-path::${{ github.workspace }}/bin"
138145
139146
- name: Build amd64
140147
env:
141-
GOPATH: ${{ runner.workspace }}
142148
GOOS: windows
143149
GOARCH: amd64
144150
run: |
@@ -148,4 +154,4 @@ jobs:
148154
uses: actions/upload-artifact@v1
149155
with:
150156
name: windows_amd64
151-
path: bin
157+
path: src/github.com/containerd/containerd/bin/

0 commit comments

Comments
 (0)