forked from rapidsai/node
-
Notifications
You must be signed in to change notification settings - Fork 0
83 lines (74 loc) · 2.93 KB
/
release.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
name: Create GitHub release
env:
NODE: "16.15.1"
RAPIDS: "22.02.00"
VERSION: "0.0.1"
REPOSITORY: "ghcr.io/rapidsai/node"
concurrency:
group: create_github_release
cancel-in-progress: true
permissions:
contents: write
jobs:
build-extract-and-release-packages:
name: Build, extract, and release packages
runs-on: ubuntu-20.04
strategy:
fail-fast: true
matrix:
CUDA: ["11.6.2"]
LINUX: ["ubuntu20.04"]
GPU_ARCH: [60, 70, 80, 86, ALL]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
lfs: true
fetch-depth: 2
- name: Checkout LFS
run: git lfs checkout
- name: Build packages for GPU arch ${{ matrix.GPU_ARCH }}
uses: ./.github/actions/build-and-publish-image
with:
registry-url: ghcr.io
registry-username: ${{ github.repository_owner }}
registry-password: ${{ github.token }}
pull: true
push: false
AWS_ACCESS_KEY_ID: "${{ secrets.AWS_ACCESS_KEY_ID }}"
AWS_SECRET_ACCESS_KEY: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
RAPIDSAI_GITHUB_ACCESS_TOKEN: "${{ secrets.RAPIDSAI_GITHUB_ACCESS_TOKEN }}"
file: dev/dockerfiles/devel/package.Dockerfile
tags: |
${{ env.REPOSITORY }}:${{ env.RAPIDS }}-devel-node${{ env.NODE }}-cuda${{ matrix.CUDA }}-${{ matrix.LINUX }}-packages-${{ matrix.GPU_ARCH }}
build-args: |
"CUDAARCHS=${{ matrix.GPU_ARCH }}-real"
"PARALLEL_LEVEL=1"
"SCCACHE_IDLE_TIMEOUT=32768"
"SCCACHE_REGION=us-west-2"
"SCCACHE_BUCKET=node-rapids-sccache"
"RAPIDS_VERSION=${{ env.RAPIDS }}"
"FROM_IMAGE=${{ env.REPOSITORY }}:${{ env.RAPIDS }}-devel-node${{ env.NODE }}-cuda${{ matrix.CUDA }}-${{ matrix.LINUX }}-main"
- name: Extract packages for GPU arch ${{ matrix.GPU_ARCH }}
run: |
mkdir -p build
docker run --rm -v "$PWD/build:/out" \
${{ env.REPOSITORY }}:${{ env.RAPIDS }}-devel-node${{ env.NODE }}-cuda${{ matrix.CUDA }}-${{ matrix.LINUX }}-packages-${{ matrix.GPU_ARCH }} \
sh -c "cp /opt/rapids/*.tgz /out/"
GPU_ARCH="$(echo "${{ matrix.GPU_ARCH }}" | tr '[:upper:]' '[:lower:]')"
for x in cuda cudf cugraph cuml cuspatial io rmm sql; do
tar -C build -zf build/rapidsai-$x-*.tgz --strip-components=3 -x package/build/Release/rapidsai_$x.node;
mv build/rapidsai_$x.node build/rapidsai_$x-$GPU_ARCH-${{ env.RAPIDS }}.node;
done;
rm -rf build/*.tgz;
- name: Create GitHub release
uses: softprops/action-gh-release@v1
env:
GITHUB_REPOSITORY: ${{ github.repository }}
with:
body: ""
draft: true
tag_name: "v${{ env.RAPIDS }}"
token: ${{ secrets.RAPIDSAI_GITHUB_ACCESS_TOKEN }}
files: |
build/*.node