Skip to content

Commit

Permalink
fix: build for lowest common denominator
Browse files Browse the repository at this point in the history
Light gateways use armv6 so we need to build gateway-mfr-rs for this as the lowest common denominator
  • Loading branch information
shawaj committed Oct 24, 2021
1 parent d7b978f commit f5abe09
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-pypi-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-unknown-linux-musl
target: arm-unknown-linux-gnueabihf
override: true

- name: Clone repo
run: |
git clone --branch v0.1.3 https://github.com/helium/gateway-mfr-rs.git .
git clone --branch v0.1.5 https://github.com/helium/gateway-mfr-rs.git .
- name: Run cargo check
uses: actions-rs/cargo@v1
Expand All @@ -32,11 +32,11 @@ jobs:
with:
use-cross: true
command: build
args: --target aarch64-unknown-linux-musl --release
args: --target arm-unknown-linux-gnueabihf --release

- name: Copy release file
run: |
cp ./target/aarch64-unknown-linux-musl/release/gateway_mfr gateway_mfr
cp ./target/arm-unknown-linux-gnueabihf/release/gateway_mfr gateway_mfr
- uses: actions/upload-artifact@v2
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ jobs:
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: aarch64-unknown-linux-musl
target: arm-unknown-linux-gnueabihf
override: true

- name: Clone repo
run: |
git clone --branch v0.1.3 https://github.com/helium/gateway-mfr-rs.git .
git clone --branch v0.1.5 https://github.com/helium/gateway-mfr-rs.git .
- name: Run cargo check
uses: actions-rs/cargo@v1
Expand All @@ -32,11 +32,11 @@ jobs:
with:
use-cross: true
command: build
args: --target aarch64-unknown-linux-musl --release
args: --target arm-unknown-linux-gnueabihf --release

- name: Copy release file
run: |
cp ./target/aarch64-unknown-linux-musl/release/gateway_mfr gateway_mfr
cp ./target/arm-unknown-linux-gnueabihf/release/gateway_mfr gateway_mfr
- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit f5abe09

Please sign in to comment.