ci: build for old glibc (#232)

* build(deps): shadow_rs

* ci(build): build for old glibc

* ci: simplify all
This commit is contained in:
Nugine
2025-02-22 20:25:16 +08:00
committed by GitHub
parent 2030ad946e
commit e87cc87cbf
10 changed files with 184 additions and 204 deletions
-62
View File
@@ -1,62 +0,0 @@
name: mint-test
on:
workflow_dispatch:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
mintest:
runs-on: ubuntu-22.04
timeout-minutes: 30
steps:
- name: install protoc
run: |
wget https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protoc-27.0-linux-x86_64.zip
unzip protoc-27.0-linux-x86_64.zip -d protoc3
mv protoc3/bin/* /usr/local/bin/
chmod +x /usr/local/bin/protoc
rm -rf protoc-27.0-linux-x86_64.zip protoc3
- name: install flatc
run: |
wget https://github.com/google/flatbuffers/releases/download/v24.3.25/Linux.flatc.binary.g++-13.zip
unzip Linux.flatc.binary.g++-13.zip
mv flatc /usr/local/bin/
chmod +x /usr/local/bin/flatc
rm -rf Linux.flatc.binary.g++-13.zip
- name: checkout source code
uses: actions/checkout@v4
- name: rust-toolchain
uses: actions-rs/toolchain@v1.0.6
with:
toolchain: stable
- name: cache rust dependencies
uses: Swatinem/rust-cache@v2
- name: cargo build & release
run: cargo build --release
- name: run this rustfs server
run: |
sudo mkdir -p /data/rustfs
sudo nohup ./target/release/rustfs /data/rustfs &
- name: run mint test task
run: |
ps aux | grep rustfs
SERVER_ADDRESS=$(ifconfig eth0 | awk 'NR==2 { print $2 }')
docker run -e SERVER_ENDPOINT=${SERVER_ADDRESS}:9000 \
-e ACCESS_KEY=rustfsadmin \
-e SECRET_KEY=rustfsadmin \
-e ENABLE_HTTPS=0 \
minio/mint