Skip to content

Commit

Permalink
Merge #707: ci: Replace Cirrus CI with GitHub Actions
Browse files Browse the repository at this point in the history
bdb79f6 ci: Replace Cirrus CI with GitHub Actions (Hennadii Stepanov)

Pull request description:

  This PR moves tests from Cirrus CI, which [is not free anymore](https://cirrus-ci.org/blog/2023/07/17/limiting-free-usage-of-cirrus-ci/), to GitHub Actions.

  Possible performance improvements (caching, etc.) are left for future follow-ups.

ACKs for top commit:
  achow101:
    ACK bdb79f6

Tree-SHA512: b51d2f2f83c6f0cd79cf2d9703892e79c9446dad4c07177d91079fa347394884444f141f2d5874a8263f95e1af635eb42c700a7cabfdda99bf6eb9a986e14372
  • Loading branch information
achow101 committed Sep 15, 2023
2 parents c3a94b6 + bdb79f6 commit 70ffb2b
Show file tree
Hide file tree
Showing 4 changed files with 426 additions and 350 deletions.
350 changes: 0 additions & 350 deletions .cirrus.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/actions/build-bitcoind/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build bitcoind
description: Build bitcoind with depends.
runs:
using: composite
steps:
- shell: bash
run: |
sudo apt-get update
sudo apt-get install -y ccache
echo "CCACHE_DIR=${{ runner.temp }}/ccache" >> "$GITHUB_ENV"
- uses: actions/cache/restore@v3
id: ccache-cache
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ github.job }}-ccache-${{ github.run_id }}
restore-keys: ${{ github.job }}-ccache-

- shell: bash
env:
CCACHE_MAXSIZE: '20M'
run: |
ccache --zero-stats
cd test; ./setup_environment.sh --bitcoind; cd ..
ccache --show-stats --verbose
tar -czf bitcoind.tar.gz test/work/bitcoin/src/bitcoind
- uses: actions/cache/save@v3
if: github.event_name != 'pull_request' && steps.ccache-cache.outputs.cache-hit != 'true'
with:
path: ${{ env.CCACHE_DIR }}
key: ${{ github.job }}-ccache-${{ github.run_id }}

- uses: actions/upload-artifact@v3
with:
name: bitcoind
path: bitcoind.tar.gz

0 comments on commit 70ffb2b

Please sign in to comment.