mirror of
https://github.com/rustfs/rustfs.git
synced 2026-08-24 21:26:28 +00:00
Update mint.yml
This commit is contained in:
+38
-50
@@ -15,9 +15,44 @@ jobs:
|
|||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
steps:
|
steps:
|
||||||
- name: craete dir
|
- name: install protoc
|
||||||
run: mkdir -p data/rustfs
|
run: |
|
||||||
- name: test docker mint
|
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: cargo build & release
|
||||||
|
run: cargo build --release
|
||||||
|
|
||||||
|
- name: run this rustfs server
|
||||||
|
run: |
|
||||||
|
mkdir -p data/rustfs
|
||||||
|
nohup ./target/release/rustfs \
|
||||||
|
--address 0.0.0.0:9000 \
|
||||||
|
--access-key rustfsadmin \
|
||||||
|
--secret-key rustfsadmin \
|
||||||
|
--domain-name localhost:9000 \
|
||||||
|
data/rustfs &
|
||||||
|
|
||||||
|
- name: run mint test task
|
||||||
run: |
|
run: |
|
||||||
docker run -itd -e SERVER_ENDPOINT=localhost:9000 \
|
docker run -itd -e SERVER_ENDPOINT=localhost:9000 \
|
||||||
-e ACCESS_KEY=rustfsadmin \
|
-e ACCESS_KEY=rustfsadmin \
|
||||||
@@ -27,51 +62,4 @@ jobs:
|
|||||||
minio/mint
|
minio/mint
|
||||||
ls -l /tmp/logs
|
ls -l /tmp/logs
|
||||||
|
|
||||||
# - 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: cargo build & release
|
|
||||||
# run: cargo build --release
|
|
||||||
|
|
||||||
# - name: run this rustfs server
|
|
||||||
# run: |
|
|
||||||
# mkdir -p data/rustfs
|
|
||||||
# nohub ./target/release/rustfs \
|
|
||||||
# --address 0.0.0.0:9000 \
|
|
||||||
# --access-key rustfsadmin \
|
|
||||||
# --secret-key rustfsadmin \
|
|
||||||
# --domain-name localhost:9000 \
|
|
||||||
# data/rustfs &
|
|
||||||
|
|
||||||
# - name: run mint test task
|
|
||||||
# run: |
|
|
||||||
# docker run -itd -e SERVER_ENDPOINT=localhost:9000 \
|
|
||||||
# -e ACCESS_KEY=rustfsadmin \
|
|
||||||
# -e SECRET_KEY=rustfsadmin \
|
|
||||||
# -e ENABLE_HTTPS=1 \
|
|
||||||
# -v /tmp/logs:/mint/log \
|
|
||||||
# minio/mint
|
|
||||||
# ls -l /tmp/logs
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user