This repository has been archived by the owner on Apr 14, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
106 lines (97 loc) · 3.85 KB
/
nightly.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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
name: nightly
on:
push:
branches:
- main
schedule:
- cron: 0 22 * * *
jobs:
build:
runs-on: ubuntu-latest
container:
image: ghcr.io/sirredbeard/snap-build/snap-build:latest
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v1
- name: Seed Snapcraft remote-build credentials into container
env:
REMOTE_BUILD_CREDENTIALS: ${{ secrets.REMOTE_BUILD_CREDENTIALS }}
run: |
mkdir -p $HOME/.local/share/snapcraft/provider/launchpad/
echo ${REMOTE_BUILD_CREDENTIALS} | base64 --decode --ignore-garbage > $HOME/.local/share/snapcraft/provider/launchpad/credentials
- name: Seed Snapcraft Store credentials into container
env:
SNAPCRAFT_LOGIN_FILE: ${{ secrets.SNAPCRAFT_LOGIN_FILE }}
run: |
cd nightly
mkdir .snapcraft
echo ${SNAPCRAFT_LOGIN_FILE} | base64 --decode --ignore-garbage > .snapcraft/snapcraft.cfg
- name: Configure git global settings for snapcraft
run: git config --global user.email "[email protected]" && git config --global user.name "Your Name"
- name: Build amd64 snap on Launchpad using remote-build and then upload to Snapcraft.io
continue-on-error: true
timeout-minutes: 60
run: |
cd nightly
snapcraft remote-build --launchpad-accept-public-upload --build-on=amd64
snapcraft upload --release=edge *amd64.snap
- name: Upload amd64 build log as artifact
uses: actions/[email protected]
with:
name: nim-lang-nightly_amd64.txt
path: nightly/nim-lang-nightly_amd64.txt
retention-days: 3
- name: Build arm64 snap on Launchpad using remote-build and then upload to Snapcraft.io
continue-on-error: true
timeout-minutes: 120
run: |
cd nightly
snapcraft remote-build --launchpad-accept-public-upload --build-on=arm64
snapcraft upload --release=edge *arm64.snap
- name: Upload arm64 build log as artifact
uses: actions/[email protected]
with:
name: nim-lang-nightly_arm64.txt
path: nightly/nim-lang-nightly_arm64.txt
retention-days: 3
- name: Build armhf snap on Launchpad using remote-build and then upload to Snapcraft.io
continue-on-error: true
timeout-minutes: 120
run: |
cd nightly
snapcraft remote-build --launchpad-accept-public-upload --build-on=armhf
snapcraft upload --release=edge *armhf.snap
- name: Upload armhf build log as artifact
uses: actions/[email protected]
with:
name: nim-lang-nightly_armhf.txt
path: nightly/nim-lang-nightly_armhf.txt
retention-days: 3
- name: Build ppc64el snap on Launchpad using remote-build and then upload to Snapcraft.io
continue-on-error: true
timeout-minutes: 60
run: |
cd nightly
snapcraft remote-build --launchpad-accept-public-upload --build-on=ppc64el
snapcraft upload --release=edge *ppc64el.snap
- name: Upload ppc64el build log as artifact
uses: actions/[email protected]
with:
name: nim-lang-nightly_ppc64el.txt
path: nightly/nim-lang-nightly_ppc64el.txt
retention-days: 3
- name: Build i386 snap on Launchpad using remote-build and then upload to Snapcraft.io
continue-on-error: true
timeout-minutes: 60
run: |
cd nightly
snapcraft remote-build --launchpad-accept-public-upload --build-on=i386
snapcraft upload --release=edge *i386.snap
- name: Upload i386 build log as artifact
uses: actions/[email protected]
with:
name: nim-lang-nightly_i386.txt
path: nightly/nim-lang-nightly_i386.txt
retention-days: 3