Skip to content

Commit

Permalink
ci: Replace Cirrus CI with GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Sep 12, 2023
1 parent c3a94b6 commit bdb79f6
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
Loading

0 comments on commit bdb79f6

Please sign in to comment.