summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGregory <gregory.mkv@gmail.com>2021-02-28 23:41:21 -0500
committerGregory <gregory.mkv@gmail.com>2021-02-28 23:41:21 -0500
commit11295fb88a2e079a6e8f80eab9b80269cd00e153 (patch)
tree7d329028fbcc277e7c9a75ffb16b45ea637330f2
parent687f3a5b1463886b0cbe926253497fd7c6ae447b (diff)
Add ARM target
-rw-r--r--.github/workflows/publish.yml14
-rw-r--r--.github/workflows/test.yml21
2 files changed, 32 insertions, 3 deletions
diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml
index 9d5d8fc..c3e786a 100644
--- a/.github/workflows/publish.yml
+++ b/.github/workflows/publish.yml
@@ -14,15 +14,23 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
+ use-cross: false
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
+ use-cross: false
+
+ - os: ubuntu-latest
+ target: arm-unknown-linux-gnueabihf
+ use-cross: true
- os: windows-latest
target: x86_64-pc-windows-msvc
+ use-cross: false
- os: macos-latest
target: x86_64-apple-darwin
+ use-cross: false
steps:
- name: Checkout repository
@@ -44,7 +52,11 @@ jobs:
- name: Build
- run: cargo build --release --locked
+ - uses: actions-rs/cargo@v1
+ with:
+ use-cross: ${{ matrix.use-cross }}
+ command: build
+ args: --target ${{ matrix.target }}
- name: Strip binary
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 0fe9a2f..9cc428f 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -11,15 +11,23 @@ jobs:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
+ use-cross: false
- os: ubuntu-latest
target: x86_64-unknown-linux-musl
+ use-cross: false
+
+ - os: ubuntu-latest
+ target: arm-unknown-linux-gnueabihf
+ use-cross: true
- os: windows-latest
target: x86_64-pc-windows-msvc
+ use-cross: false
- os: macos-latest
target: x86_64-apple-darwin
+ use-cross: false
steps:
- name: Checkout repository
@@ -27,6 +35,10 @@ jobs:
with:
fetch-depth: 1
+ - name: Set the version
+ id: version
+ run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/}
+
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
@@ -35,5 +47,10 @@ jobs:
override: true
target: ${{ matrix.target }}
- - name: Test
- run: cargo test
+
+ - name: Build
+ uses: actions-rs/cargo@v1
+ with:
+ use-cross: ${{ matrix.use-cross }}
+ command: test
+ args: --target ${{ matrix.target }}