-
Notifications
You must be signed in to change notification settings - Fork 964
103 lines (90 loc) · 2.4 KB
/
verify.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: verify
on:
push:
branches:
- main
- 'release-**'
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/**'
- '!.github/workflows/verify.yml'
pull_request:
branches:
- 'main'
- 'release-**'
paths-ignore:
- 'docs/**'
- '**.md'
- '.github/**'
- '!.github/workflows/verify.yml'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-20.04
steps:
- uses: actions/setup-go@v3
with:
go-version: 'oldstable'
- uses: actions/checkout@v3
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54
- name: Setup upterm session
if: failure() && (github.event.inputs.debug == 'true' || github.run_attempt != 1)
# if: failure()
timeout-minutes: 60
uses: lhotari/action-upterm@v1
build:
strategy:
fail-fast: false
matrix:
version: ['1.20', '1.21', '1.22']
runs-on: ubuntu-20.04
steps:
- name: Check out code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: ${{ matrix.version }}
cache: true
id: go
- name: Install dependencies
run: |
sudo .github/scripts/apt_install.sh g++-multilib gcc-mingw-w64
- name: Build linux target
timeout-minutes: 10
run: |
make
./juicefs version
- name: build lite
timeout-minutes: 10
run: |
make juicefs.lite
./juicefs.lite version
- name: build windows
timeout-minutes: 10
run: make juicefs.exe
- name: build libjfs.dll
timeout-minutes: 10
run: make -C sdk/java/libjfs libjfs.dll
- name: build ceph
timeout-minutes: 10
run: |
sudo .github/scripts/apt_install.sh librados-dev
make juicefs.ceph
./juicefs.ceph version
- name: build fdb
timeout-minutes: 10
run: |
wget https://github.com/apple/foundationdb/releases/download/6.3.23/foundationdb-clients_6.3.23-1_amd64.deb
sudo dpkg -i foundationdb-clients_6.3.23-1_amd64.deb
make juicefs.fdb
./juicefs.fdb version
- name: Setup upterm session
if: failure() && (github.event.inputs.debug == 'true' || github.run_attempt != 1)
# if: failure()
timeout-minutes: 60
uses: lhotari/action-upterm@v1