From b154ed4202b607b6bcd719f8ded989f29b92e7dc Mon Sep 17 00:00:00 2001 From: mirschao <119988085+mirschao@users.noreply.github.com> Date: Sun, 8 Dec 2024 22:02:33 +0800 Subject: [PATCH] Create mint.yml MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 测试mint检测手段之确定启动参数 --- .github/workflows/mint.yml | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/mint.yml diff --git a/.github/workflows/mint.yml b/.github/workflows/mint.yml new file mode 100644 index 00000000..0c017a6c --- /dev/null +++ b/.github/workflows/mint.yml @@ -0,0 +1,47 @@ +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: cargo build & release + run: cargo build --release + + - name: run this rustfs server + run: ./target/release/rustfs --help +