forked from isl-org/Open3D
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (84 loc) · 2.96 KB
/
ubuntu-openblas.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
name: Ubuntu OpenBLAS
on:
workflow_dispatch:
push:
branches:
- master
pull_request:
types: [opened, reopened, synchronize]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
env:
GCE_CLI_GHA_VERSION: '302.0.0' # Fixed to avoid dependency on API changes
jobs:
openblas-amd64:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Maximize build space
run: |
source util/ci_utils.sh
maximize_ubuntu_github_actions_build_space
- name: Docker build
run: |
docker/docker_build.sh openblas-amd64-py36-dev
- name: GCloud CLI setup
uses: google-github-actions/[email protected]
with:
version: ${{ env.GCE_CLI_GHA_VERSION }}
service_account_key: ${{ secrets.GCE_SA_KEY_DOCS_CI }}
project_id: ${{ secrets.GCE_DOCS_PROJECT }}
export_default_credentials: true
- name: Upload ccache to GCS
run: |
gsutil cp ${GITHUB_WORKSPACE}/open3d-ci-openblas-amd64.tar.gz gs://open3d-ci-cache/ || true
- name: Docker test
run: |
docker/docker_test.sh openblas-amd64-py36-dev
# How to resolve GitHub Actions ARM64 build timeout.
#
# When there are large amount of code change (e.g. changed some headers that
# causes re-compilation of many files), the GitHub Actions build could timeout
# due to excessive ccache misses. The solution is to build the branch manually
# and update the ccache artifacts on the Google Cloud bucket. Run:
#
# ```bash
# docker/docker_build.sh openblas-arm64-py36-dev
# gsutil cp open3d-ci-openblas-arm64.tar.gz gs://open3d-ci-cache/
# ```
openblas-arm64:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
steps:
- name: Checkout source code
uses: actions/checkout@v2
- name: Maximize build space
run: |
source util/ci_utils.sh
maximize_ubuntu_github_actions_build_space
# https://www.stereolabs.com/docs/docker/building-arm-container-on-x86/
- name: Install QEMU dependencies
run: |
sudo apt-get update
sudo apt-get --yes install qemu binfmt-support qemu-user-static
- name: Docker build
run: |
docker/docker_build.sh openblas-arm64-py36-dev
- name: GCloud CLI setup
uses: google-github-actions/[email protected]
with:
version: ${{ env.GCE_CLI_GHA_VERSION }}
service_account_key: ${{ secrets.GCE_SA_KEY_DOCS_CI }}
project_id: ${{ secrets.GCE_DOCS_PROJECT }}
export_default_credentials: true
- name: Upload ccache to GCS
run: |
gsutil cp ${GITHUB_WORKSPACE}/open3d-ci-openblas-arm64.tar.gz gs://open3d-ci-cache/ || true
- name: Docker test
run: |
docker/docker_test.sh openblas-arm64-py36-dev