Skip to content

ci: Add guix release tests #285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 55 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
name: CI

on:
push:
pull_request:

concurrency:
group: ${{ github.event_name != 'pull_request' && github.run_id || github.ref }}
cancel-in-progress: true

defaults:
run:
# Enforce fail-fast behavior for all platforms.
# See: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#exit-codes-and-error-action-preference
shell: bash

jobs:
guix-windows:
name: 'Windows, snap-tag guix'
runs-on: windows-2022

env:
PYTHONUTF8: 1
TEST_RUNNER_TIMEOUT_FACTOR: 40

steps:
- name: Checkout bitcoin-core packaging
uses: actions/checkout@v4
with:
path: packaging-repo

- name: Extract version from snapcraft.yaml
run: |
snap_version=$(grep "version:" packaging-repo/snap/snapcraft.yaml | awk -F"'" '{print $2}')
echo "TAG_VERSION=$snap_version" >> $GITHUB_ENV

- name: Checkout bitcoin-core
uses: actions/checkout@v4
with:
repository: bitcoin/bitcoin
ref: refs/tags/v${{ env.TAG_VERSION }}

- name: Download Bitcoin Core Windows zip
run: |
curl -LO "https://bitcoincore.org/bin/bitcoin-core-${{ env.TAG_VERSION }}/bitcoin-${{ env.TAG_VERSION }}-win64.zip"
unzip bitcoin-${{ env.TAG_VERSION }}-win64.zip -d ./unzipped
mv ./unzipped/bitcoin-${{ env.TAG_VERSION }}/bin ./

- name: Run bitcoind.exe
run: ./bin/bitcoind.exe -version

- name: Run unit tests
# Can't use ctest here like other jobs as we don't have a CMake build tree.
run: |
./bin/test_bitcoin.exe -l test_suite