forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 232
64 lines (63 loc) · 2.46 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
name: Nightly build
on:
push:
branches:
- develop
jobs:
build_x64:
runs-on: ubuntu-latest
steps:
- name: Install Guix and locales
run: |
sudo apt install guix
guix pull --keep-going --fallback
guix package --search-paths -p "${HOME}/.config/guix/current"
guix install glibc-locales
echo GUIX_PROFILE="${HOME}/.config/guix/current" >> "${GITHUB_ENV}"
echo GUIX_LOCPATH="${HOME}/.guix-profile/lib/locale" >> "${GITHUB_ENV}"
- name: Checkout
uses: actions/[email protected]
- name: Build packages
run: |
mkdir -p "$PWD/SDKs"
wget https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
tar -C "$PWD/SDKs" -xaf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
export SDK_PATH="$PWD/SDKs"
env HOSTS='x86_64-linux-gnu x86_64-w64-mingw32 x86_64-apple-darwin' ${GITHUB_WORKSPACE}/contrib/guix/guix-build
- name: Publish builds
uses: pyTooling/Actions/releaser@main
with:
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}
files: |
**/*-x86_64-linux-gnu.tar.gz
**/*-win64.zip
**/*-x86_64-apple-darwin.tar.gz
build_ARM:
runs-on: ubuntu-latest
steps:
- name: Install Guix and locales
run: |
sudo apt install guix
guix pull --keep-going --fallback
guix package --search-paths -p "${HOME}/.config/guix/current"
guix install glibc-locales
echo GUIX_PROFILE="${HOME}/.config/guix/current" >> "${GITHUB_ENV}"
echo GUIX_LOCPATH="${HOME}/.guix-profile/lib/locale" >> "${GITHUB_ENV}"
- name: Checkout
uses: actions/[email protected]
- name: Build packages
run: |
mkdir -p "$PWD/SDKs"
wget https://bitcoincore.org/depends-sources/sdks/Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
tar -C "$PWD/SDKs" -xaf Xcode-12.2-12B45b-extracted-SDK-with-libcxx-headers.tar.gz
export SDK_PATH="$PWD/SDKs"
env HOSTS='aarch64-linux-gnu arm64-apple-darwin' ${GITHUB_WORKSPACE}/contrib/guix/guix-build
- name: Publish builds
uses: pyTooling/Actions/releaser@main
with:
tag: nightly
token: ${{ secrets.GITHUB_TOKEN }}
files: |
**/*-aarch64-linux-gnu.tar.gz
**/*-arm64-apple-darwin.tar.gz