Skip to content

Commit

Permalink
Giving up :(
Browse files Browse the repository at this point in the history
  • Loading branch information
flxkrmr authored Feb 9, 2024
1 parent 590b231 commit a956130
Showing 1 changed file with 27 additions and 25 deletions.
52 changes: 27 additions & 25 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,31 @@ jobs:

steps:
- uses: actions/checkout@v3
- name: Run Tests
run: cargo test

- name: Set up Rust for Raspberry Pi cross-compilation
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: arm-unknown-linux-gnueabihf
- name: Add sources for armhf
run: sudo sh -c 'cat .github/artifacts/sources.list > /etc/apt/sources.list'

- name: Lets have a look
run: sudo sh -c 'cat /etc/apt/sources.list'

- name: Prepare for cross compilation
run: sudo dpkg --add-architecture armhf && sudo apt-get update

- name: Install dependencies for cross-compilation
run: sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross libsqlite3-dev:armhf

- name: Build binary for Raspberry Pi
run: cargo build --release --target=arm-unknown-linux-gnueabihf

- name: Upload binary
uses: actions/upload-artifact@v2
with:
name: boiler-watch-api
path: target/arm-unknown-linux-gnueabihf/release/boiler-watch-api
# - name: Set up Rust for Raspberry Pi cross-compilation
# uses: actions-rs/toolchain@v1
# with:
# toolchain: stable
# target: arm-unknown-linux-gnueabihf
# - name: Add sources for armhf
# run: sudo sh -c 'cat .github/artifacts/sources.list > /etc/apt/sources.list'
#
# - name: Lets have a look
# run: sudo sh -c 'cat /etc/apt/sources.list'
#
# - name: Prepare for cross compilation
# run: sudo dpkg --add-architecture armhf && sudo apt-get update
#
# - name: Install dependencies for cross-compilation
# run: sudo apt-get install -y gcc-arm-linux-gnueabihf libc6-armhf-cross libc6-dev-armhf-cross libsqlite3-dev:armhf
#
# - name: Build binary for Raspberry Pi
# run: cargo build --release --target=arm-unknown-linux-gnueabihf
#
# - name: Upload binary
# uses: actions/upload-artifact@v2
# with:
# name: boiler-watch-api
# path: target/arm-unknown-linux-gnueabihf/release/boiler-watch-api

0 comments on commit a956130

Please sign in to comment.