Skip to content

Commit

Permalink
Create rust-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
3andne authored Mar 5, 2023
1 parent ba4bfe6 commit 6e8392c
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/rust-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Rust-Build

on:
push:
tags:
- v*

env:
CARGO_TERM_COLOR: always
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse

jobs:
test:
strategy:
matrix:
target:
- aarch64-unknown-linux-gnu
- x86_64-unknown-linux-gnu
- arm-unknown-linux-gnueabi
- armv7-unknown-linux-gnueabihf
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Rust
run: rustup update stable
- name: Install cross-compilation tools
uses: taiki-e/setup-cross-toolchain-action@v1
with:
target: ${{ matrix.target }}
- run: |
cargo build --release &&
mv ./target/${{ matrix.target }}/release/restls ./target/${{ matrix.target }}/release/restls-${{ matrix.target }}
- name: Upload Github Assets
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: target/${{ matrix.target }}/release/restls-${{ matrix.target }}
prerelease: ${{ contains(github.ref, '-') }}

0 comments on commit 6e8392c

Please sign in to comment.