From 48ac068e1ea73071d2c578ff9e84e9175dbd82c9 Mon Sep 17 00:00:00 2001 From: ssrlive <30760636+ssrlive@users.noreply.github.com> Date: Thu, 15 Aug 2024 10:36:30 +0800 Subject: [PATCH] mips-unknown-linux-gnu publish --- .github/workflows/mips-unknown-linux-gnu.yml | 43 ++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/workflows/mips-unknown-linux-gnu.yml diff --git a/.github/workflows/mips-unknown-linux-gnu.yml b/.github/workflows/mips-unknown-linux-gnu.yml new file mode 100644 index 0000000..bf8bddf --- /dev/null +++ b/.github/workflows/mips-unknown-linux-gnu.yml @@ -0,0 +1,43 @@ +name: Build mips-unknown-linux-gnu Releases +on: + push: + tags: + - "*" +env: + CARGO_TERM_COLOR: always + +jobs: + build: + strategy: + matrix: + target: + - mips-unknown-linux-gnu + + include: + - target: mips-unknown-linux-gnu + host_os: ubuntu-latest + + runs-on: ${{ matrix.host_os }} + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + + - name: Prepare + shell: bash + run: | + cargo install cbindgen + mkdir release + + - name: Build + shell: bash + run: | + ./.github/workflows/mips-unknown-linux-gnu.sh + cbindgen -c cbindgen.toml -l C --cpp-compat -o ./overtls.h + zip -j release/overtls-${{ matrix.target }}.zip target/${{ matrix.target }}/release/overtls ./config.json ./overtls.h target/${{ matrix.target }}/release/libovertls.so + + - name: Upload + uses: softprops/action-gh-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + files: release/*