-
Notifications
You must be signed in to change notification settings - Fork 24
52 lines (48 loc) · 1.46 KB
/
build.yml
File metadata and controls
52 lines (48 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
on: [push]
name: Remarkable Build
jobs:
build:
strategy:
matrix:
target:
- armv7-unknown-linux-gnueabihf
- aarch64-unknown-linux-gnu
include:
- target: armv7-unknown-linux-gnueabihf
name: ghostwriter-rm2
- target: aarch64-unknown-linux-gnu
name: ghostwriter-rmpp
name: Remarkable Build
needs: create_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- uses: actions-rs/cargo@v1
with:
use-cross: true
command: build
args: --release --target ${{ matrix.target }}
- name: Rename binary
run: mv target/${{ matrix.target }}/release/ghostwriter target/${{ matrix.target }}/release/${{ matrix.name }}
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
tag_name: ${{ needs.create_release.outputs.tag-name }}
files: |
target/${{ matrix.target }}/release/${{ matrix.name }}
create_release:
name: Remarkable Release
runs-on: ubuntu-latest
steps:
- name: Release
id: create_release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
name: ${{ github.ref_name }}