-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (43 loc) · 1.31 KB
/
build-all-and-upload.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
name: Build all Erlang versions and upload to PackageCloud
on:
pull_request:
workflow_dispatch:
schedule:
- cron: '30 8 * * 1-5' # 08:30 mon-fri
jobs:
missing-versions:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- name: Check missing versions
id: missing-versions
run: echo "matrix=$(bin/missing-versions)" >> "$GITHUB_OUTPUT"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
outputs:
matrix: ${{ steps.missing-versions.outputs.matrix }}
build-and-upload:
needs: missing-versions
runs-on: ubuntu-latest
strategy:
max-parallel: 10
matrix:
include: ${{ fromJson(needs.missing-versions.outputs.matrix) }}
fail-fast: false
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ruby
- uses: depot/use-action@v1
- name: Build Erlang version and upload to PackageCloud
env:
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }}
run : bin/build-and-upload ${{ matrix.image }} ${{ matrix.platform }} ${{ matrix.version }}