Skip to content

Commit

Permalink
mips-unknown-linux-gnu publish
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Aug 15, 2024
1 parent b52f3f5 commit 48ac068
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/mips-unknown-linux-gnu.yml
Original file line number Diff line number Diff line change
@@ -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/*

0 comments on commit 48ac068

Please sign in to comment.