-
Notifications
You must be signed in to change notification settings - Fork 5
62 lines (53 loc) · 1.47 KB
/
r-builds.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
name: R builds
on:
workflow_dispatch:
inputs:
platforms:
description: |
Comma-separated list of platforms. Default is "all" to use all platforms.
required: false
default: 'all'
type: string
schedule:
- cron: '55 2 * * *'
permissions:
contents: write
jobs:
setup-matrix:
runs-on: ubuntu-latest
outputs:
platforms: ${{ steps.setup-matrix.outputs.platforms }}
steps:
- uses: actions/checkout@v3
- name: Set up matrix of R builds
id: setup-matrix
run: |
platforms=$(python tests/get-platforms.py ${{ github.event.inputs.platforms }})
echo "platforms=$platforms" >> $GITHUB_OUTPUT
package-files:
needs: setup-matrix
strategy:
fail-fast: false
matrix:
platform: ${{ fromJson(needs.setup-matrix.outputs.platforms) }}
runs-on: ubuntu-latest
name: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v3
- name: Build base image
run: docker-compose build ${{ matrix.platform }}
- name: Build R
run: docker-compose up ${{ matrix.platform }}
- name: Copy package
run: |
pkg=$(find integration -name "*.deb" -or -name "*.rpm")
cp "$pkg" .
ls -l "$pkg"
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
*-rstudio-*.deb
*-rstudio-*.rpm
name: "Latest builds"
tag_name: latest