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:
|
jobs:
|
||||||
check:
|
check:
|
||||||
name: Compile Check
|
name: Compile Check
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
@ -21,7 +21,7 @@ jobs:
|
|||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
name: Formatter
|
name: Formatter
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
@ -32,7 +32,7 @@ jobs:
|
|||||||
|
|
||||||
test:
|
test:
|
||||||
name: Run Tests
|
name: Run Tests
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Setup Rust
|
- name: Setup Rust
|
||||||
@ -42,7 +42,7 @@ jobs:
|
|||||||
- run: cargo test --lib --all-features
|
- run: cargo test --lib --all-features
|
||||||
|
|
||||||
compile-freebsd:
|
compile-freebsd:
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
name: Run Compile Checks in FreeBSD
|
name: Run Compile Checks in FreeBSD
|
||||||
env:
|
env:
|
||||||
FREEBSD_VER: "14.3"
|
FREEBSD_VER: "14.3"
|
||||||
@ -86,7 +86,7 @@ jobs:
|
|||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Linter
|
name: Linter
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
needs: [check]
|
needs: [check]
|
||||||
strategy:
|
strategy:
|
||||||
matrix: # Try all combinations of features. Some times weird things appear.
|
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:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: mempool-ci
|
||||||
timeout-minutes: 120
|
timeout-minutes: 120
|
||||||
name: Build and push to DockerHub
|
name: Build and push to DockerHub
|
||||||
steps:
|
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
|
- name: Set env variables
|
||||||
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
run: echo "TAG=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
|||||||
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -788,7 +788,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "mempool-electrs"
|
name = "mempool-electrs"
|
||||||
version = "3.3.0-dev"
|
version = "3.3.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arrayref",
|
"arrayref",
|
||||||
"base64 0.13.0",
|
"base64 0.13.0",
|
||||||
|
|||||||
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "mempool-electrs"
|
name = "mempool-electrs"
|
||||||
version = "3.3.0-dev"
|
version = "3.3.0"
|
||||||
authors = [
|
authors = [
|
||||||
"Roman Zeyde <me@romanzey.de>",
|
"Roman Zeyde <me@romanzey.de>",
|
||||||
"Nadav Ivgi <nadav@shesek.info>",
|
"Nadav Ivgi <nadav@shesek.info>",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user