-
Notifications
You must be signed in to change notification settings - Fork 810
68 lines (64 loc) · 1.98 KB
/
e2e_test_upload_cache.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
name: E2E Test Upload Cache
on:
workflow_dispatch: {}
push:
branches:
- master
- release-*
paths-ignore:
- .gitignore
- "**.md"
# Not available for frontend code for now.
- "ui/**"
- .github/workflows/checklink.yaml
- .github/checklink_config.json
- .github/workflows/ci.yml
- .github/workflows/ci_skip.yml
- .github/workflows/codecov_unittest.yaml
- .github/workflows/integration_test.yml
- .github/workflows/license_checker.yml
- .github/workflows/must_update_changelog.yml
- .github/workflows/release_helm_chart.yml
- .github/workflows/upload_env_image.yml
- .github/workflows/upload_image.yml
- .github/workflows/upload_image_pr.yml
- .github/workflows/upload_latest_files.yml
- .github/workflows/upload_release_files.yml
permissions: read-all
jobs:
build-image:
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v4
- name: build e2e images
env:
DOCKER_CACHE: 1
DOCKER_CACHE_DIR: ${{github.workspace}}/cache
GO_BUILD_CACHE: ${{github.workspace}}/cache
DOCKER_CLI_EXPERIMENTAL: enabled
run: |
docker buildx create --use --name chaos-mesh-builder
make -j4 image e2e-image
- name: upload build cache
uses: martijnhols/actions-cache/save@main
with:
path: cache
key: e2e-image-build-cache-${{ runner.os }}
build-e2e-binary:
runs-on: ubuntu-20.04
steps:
- name: checkout codes
uses: actions/checkout@v4
- name: build e2e binary
env:
DOCKER_CACHE: 1
DOCKER_CACHE_DIR: ${{github.workspace}}/cache
GO_BUILD_CACHE: ${{github.workspace}}/cache
run: |
make e2e-build
- name: upload build cache
uses: martijnhols/actions-cache/save@main
with:
path: cache
key: e2e-binary-build-cache-${{ runner.os }}