forked from isl-org/adaptive-surface-reconstruction
-
Notifications
You must be signed in to change notification settings - Fork 0
80 lines (67 loc) · 2.37 KB
/
main.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
# This is a basic workflow to help you get started with Actions
name: Build artifacts
permissions: read-all
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-18.04
permissions:
contents: write
strategy:
matrix:
configuration: [py36, py37, py38, py39, appimage]
include:
- configuration: py36
python_version: 3.6
build_python: ON
build_appimage: OFF
- configuration: py37
python_version: 3.7
build_python: ON
build_appimage: OFF
- configuration: py38
python_version: 3.8
build_python: ON
build_appimage: OFF
- configuration: py39
python_version: 3.9
build_python: ON
build_appimage: OFF
- configuration: appimage
python_version: 3.9
build_python: OFF
build_appimage: ON
env:
PYTHON_VERSION: ${{ matrix.python_version }}
BUILD_PYTHON_MODULE: ${{ matrix.build_python }}
BUILD_APPIMAGE: ${{ matrix.build_appimage }}
MAKE_FLAGS: -j2
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Download model files
run: |
wget -nv https://github.com/isl-org/adaptive-surface-reconstruction/releases/download/models/models.zip
unzip models.zip
rm models.zip
- name: Build inside container
uses: ./.github/actions/docker-action
- name: Upload artifacts
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: artifact_${{ matrix.configuration }}
path: |
build/a*.whl
build/asr*.AppImage