Add cross compile release flow
ubuntu / stable / cross-${{ matrix.target }} (aarch64-unknown-linux-gnu) Details
ubuntu / stable / cross-${{ matrix.target }} (armv7-unknown-linux-gnueabihf) Details
ubuntu / stable / fmt Details

This commit is contained in:
Hans Mündelein 2023-06-12 09:38:19 +02:00
parent d535476d62
commit 3cff753275
Signed by: hans
GPG Key ID: BA7B55E984CE74F4
2 changed files with 27 additions and 0 deletions

View File

@ -12,5 +12,9 @@ end_of_line = lf
indent_style = space
indent_size = 2
[*.{yaml,yml}]
indent_style = space
indent_size = 2
[*.{md,markdown}]
trim_trailing_whitespace = false

View File

@ -18,3 +18,26 @@ jobs:
components: rustfmt
- name: cargo fmt --check
run: cargo fmt --check --all
cross:
runs-on: ubuntu-latest
name: ubuntu / stable / cross-${{ matrix.target }}
strategy:
fail-fast: false
matrix:
target: ["armv7-unknown-linux-gnueabihf", "aarch64-unknown-linux-gnu"]
steps:
- uses: actions/checkout@v3
- name: Install stable
uses: https://github.com/dtolnay/rust-toolchain@stable
- uses: https://github.com/taiki-e/install-action@cross
- name: cross compile for ${{ matrix.target }}
run: cross build --target ${{ matrix.target }} --release
- uses: actions/release-action@main
with:
files: |-
target/${{ matrix.target }}/release/crabidy-server
api_key: '${{secrets.RELEASE_TOKEN}}'