Add cross compile release flow
This commit is contained in:
parent
d535476d62
commit
3cff753275
|
|
@ -12,5 +12,9 @@ end_of_line = lf
|
||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.{yaml,yml}]
|
||||||
|
indent_style = space
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.{md,markdown}]
|
[*.{md,markdown}]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
|
|
||||||
|
|
@ -18,3 +18,26 @@ jobs:
|
||||||
components: rustfmt
|
components: rustfmt
|
||||||
- name: cargo fmt --check
|
- name: cargo fmt --check
|
||||||
run: cargo fmt --check --all
|
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}}'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue