forked from esl/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
127 lines (112 loc) · 4.62 KB
/
latest_erl.yaml
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
name: Build and Sync latest erlang
on:
schedule:
- cron: "0 0 * * 0"
workflow_dispatch:
jobs:
build-sync-arm:
strategy:
fail-fast: false
matrix:
cfg:
- { DISTRO_LATEST: "rockylinux_8", PLATFORM: "linux-arm64" }
runs-on: ubuntu-22.04-arm64
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build the package
env:
GPG_PASS: ${{secrets.GPG_PASS}}
run: |
echo "Building ..."
echo "Distro latest ${{ matrix.cfg.DISTRO_LATEST }}"
echo "Platform ${{ matrix.cfg.PLATFORM }}"
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager
export GPG_PASS=${{secrets.GPG_PASS}}
export GPG_KEY_ID=${{secrets.GPG_KEY_ID}}
make "erlang_latest_${{matrix.cfg.DISTRO_LATEST}}_${{matrix.cfg.PLATFORM}}"
find ./ -type f -name "GPG-KEY*" -delete
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- id: install-aws-cli
uses: unfor19/[email protected]
with:
version: 2 # default
verbose: false # default
arch: amd64
- id: upload-something-s3
run: |
cd build
aws s3 sync . s3://esl-erlang --storage-class ONEZONE_IA --acl public-read
build-sync:
strategy:
fail-fast: false
matrix:
cfg:
- { DISTRO_LATEST: "rockylinux_8", PLATFORM: "linux-amd64" }
#- { DISTRO_LATEST: "ubuntu_xenial", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "ubuntu_xenial", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "ubuntu_bionic", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "ubuntu_bionic", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "ubuntu_focal", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "ubuntu_focal", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "ubuntu_jammy", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "ubuntu_jammy", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "debian_bookworm", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "debian_bookworm", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "debian_bullseye", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "debian_bullseye", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "debian_buster", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "debian_buster", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "debian_stretch", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "debian_stretch", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "centos_7", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "centos_7", PLATFORM: "linux-arm64" }
# - { DISTRO_LATEST: "centos_8", PLATFORM: "linux-amd64" }
# - { DISTRO_LATEST: "centos_8", PLATFORM: "linux-arm64" }
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@v2
- name: Build the package
env:
GPG_PASS: ${{secrets.GPG_PASS}}
run: |
echo "Building ..."
echo "Distro latest ${{ matrix.cfg.DISTRO_LATEST }}"
echo "Platform ${{ matrix.cfg.PLATFORM }}"
echo "${{secrets.GPG_P_KEY}}" | tr ';' '\n' > GPG-KEY-pmanager
export GPG_PASS=${{secrets.GPG_PASS}}
export GPG_KEY_ID=${{secrets.GPG_KEY_ID}}
make "erlang_latest_${{matrix.cfg.DISTRO_LATEST}}_${{matrix.cfg.PLATFORM}}"
find ./ -type f -name "GPG-KEY*" -delete
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: eu-west-2
- id: install-aws-cli
uses: unfor19/[email protected]
with:
version: 2 # default
verbose: false # default
arch: amd64
- id: upload-something-s3
run: |
cd build
aws s3 sync . s3://esl-erlang --storage-class ONEZONE_IA --acl public-read