forked from bitcoin/bitcoin
-
Notifications
You must be signed in to change notification settings - Fork 227
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pull request description: A tag `nightly` (it could have different name) needs to be created among others. The following action will be triggered on every push in `develop` branch and will upload artefacts to the tag. In order action to have permission to upload the artefacts in Settings -> Actions -> General -> Workflow permissions -> Read/Write permissions should be selected. GitHub job time is limited to 360 min the fifthlet takes more, so action is split to two jobs, x64 and arm. Derivation may fail randomly and/or for slow connection, it's pretty annoying that's why [--keep-going](https://manpages.debian.org/testing/guix/guix-pull.1.en.html#k) is preferred over [--keep-failed](https://manpages.debian.org/testing/guix/guix-pull.1.en.html#K) Here is how it looks on my fork https://github.com/bvbfan/omnicore/releases/tag/nightly
- Loading branch information
Showing
4 changed files
with
68 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters