From 200c98e028299d6fc6ec41b8a80145697d3b342b Mon Sep 17 00:00:00 2001 From: Alex Wendland Date: Sat, 18 Apr 2020 09:42:19 -0700 Subject: [PATCH] meta: Add github action to auto-build and release new tagged versions --- .github/workflows/rust.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..c110628 --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,29 @@ +name: ARMv7 build + +on: + push: + tags: + - '*' + +jobs: + linux_arm7: + name: Linux ARMv7 + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: armv7-unknown-linux-gnueabihf + override: true + - uses: actions-rs/cargo@v1 + with: + use-cross: true + command: build + args: --release --target armv7-unknown-linux-gnueabihf + - uses: ncipollo/release-action@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} + allowUpdates: true + artifacts: "./target/*/release/rpi-ds18b20-rust" +