We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1aa0bf2 + 35a7c57 commit c93dcfbCopy full SHA for c93dcfb
1 file changed
.github/workflows/release.yml
@@ -76,7 +76,15 @@ jobs:
76
77
- name: Install system dependencies
78
if: steps.presence.outputs.exists == '1'
79
+ # Serialize apt across the concurrent coin package jobs sharing the one
80
+ # c2pool-build self-hosted host. Without this, the 5 Linux matrix cells
81
+ # race on /var/lib/apt/lists/lock (and corrupt srcpkgcache.bin), and the
82
+ # loser fails before the build starts (e.g. LTC on v0.2.0, run
83
+ # 29148852306). flock on a host-wide lock makes apt atomic; on
84
+ # github-hosted runners the lock is per-VM and uncontended, so no-op.
85
run: |
86
+ exec {lockfd}>/tmp/c2pool-apt.lock
87
+ flock "$lockfd"
88
sudo apt-get update -qq
89
sudo apt-get install -y --no-install-recommends \
90
g++ cmake make libleveldb-dev libsecp256k1-dev
0 commit comments