Compare commits
6 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
141215c349 | ||
|
|
5f17ecdcb1 | ||
|
|
9497ed6498 | ||
|
|
3da1ddb7ce | ||
|
|
e73e74d783 | ||
|
|
07e20c2b5d |
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@ -10,7 +10,7 @@ name: Compile Check and Lint
|
||||
jobs:
|
||||
check:
|
||||
name: Compile Check
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Rust
|
||||
@ -21,7 +21,7 @@ jobs:
|
||||
|
||||
fmt:
|
||||
name: Formatter
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Rust
|
||||
@ -32,7 +32,7 @@ jobs:
|
||||
|
||||
test:
|
||||
name: Run Tests
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup Rust
|
||||
@ -42,7 +42,7 @@ jobs:
|
||||
- run: cargo test --lib --all-features
|
||||
|
||||
compile-freebsd:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
name: Run Compile Checks in FreeBSD
|
||||
env:
|
||||
FREEBSD_VER: "14.3"
|
||||
@ -86,7 +86,7 @@ jobs:
|
||||
|
||||
clippy:
|
||||
name: Linter
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
needs: [check]
|
||||
strategy:
|
||||
matrix: # Try all combinations of features. Some times weird things appear.
|
||||
|
||||
31
.github/workflows/on-tag.yml
vendored
31
.github/workflows/on-tag.yml
vendored
@ -16,39 +16,10 @@ permissions:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: mempool-ci
|
||||
timeout-minutes: 120
|
||||
name: Build and push to DockerHub
|
||||
steps:
|
||||
# Workaround based on JonasAlfredsson/docker-on-tmpfs@v1.0.1
|
||||
- name: Replace the current swap file
|
||||
shell: bash
|
||||
run: |
|
||||
sudo swapoff /mnt/swapfile
|
||||
sudo rm -v /mnt/swapfile
|
||||
sudo fallocate -l 13G /mnt/swapfile
|
||||
sudo chmod 600 /mnt/swapfile
|
||||
sudo mkswap /mnt/swapfile
|
||||
sudo swapon /mnt/swapfile
|
||||
|
||||
- name: Show current memory and swap status
|
||||
shell: bash
|
||||
run: |
|
||||
sudo free -h
|
||||
echo
|
||||
sudo swapon --show
|
||||
|
||||
- name: Mount a tmpfs over /var/lib/docker
|
||||
shell: bash
|
||||
run: |
|
||||
if [ ! -d "/var/lib/docker" ]; then
|
||||
echo "Directory '/var/lib/docker' not found"
|
||||
exit 1
|
||||
fi
|
||||
sudo mount -t tmpfs -o size=10G tmpfs /var/lib/docker
|
||||
sudo systemctl restart docker
|
||||
sudo df -h | grep docker
|
||||
|
||||
- name: Set env variables
|
||||
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||
|
||||
|
||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -788,7 +788,7 @@ dependencies = [
|
||||
|
||||
[[package]]
|
||||
name = "mempool-electrs"
|
||||
version = "3.3.0-dev"
|
||||
version = "3.3.0"
|
||||
dependencies = [
|
||||
"arrayref",
|
||||
"base64 0.13.0",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "mempool-electrs"
|
||||
version = "3.3.0-dev"
|
||||
version = "3.3.0"
|
||||
authors = [
|
||||
"Roman Zeyde <me@romanzey.de>",
|
||||
"Nadav Ivgi <nadav@shesek.info>",
|
||||
|
||||
Loading…
Reference in New Issue
Block a user