summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-20 17:37:02 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2022-01-20 18:10:07 +0700
commit522368e8af6947ea0676f62bf1ae5f68acb2058d (patch)
tree6cd95f1be8a8fc4a15bd722ee8ecdc61136d9100 /.github
parent33d52b5770c54f485df8d23c62fdf2637b4bee43 (diff)
downloadiced-522368e8af6947ea0676f62bf1ae5f68acb2058d.tar.gz
iced-522368e8af6947ea0676f62bf1ae5f68acb2058d.tar.bz2
iced-522368e8af6947ea0676f62bf1ae5f68acb2058d.zip
Build `todos` for Raspberry Pis in `build` workflow
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/build.yml26
1 files changed, 26 insertions, 0 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 25909870..beec168b 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -82,3 +82,29 @@ jobs:
with:
name: todos-x86_64-apple-darwin
path: target/release/todos
+
+ todos_raspberry:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: hecrj/setup-rust-action@v1
+ - uses: actions/checkout@master
+ - name: Install cross
+ run: cargo install cross
+ - name: Enable Link Time Optimizations
+ run: |
+ echo "[profile.release]" >> Cargo.toml
+ echo "lto = true" >> Cargo.toml
+ - name: Build todos binary for Raspberry Pi 3/4 (64 bits)
+ run: cross build --verbose --release --package todos --target aarch64-unknown-linux-gnu
+ - name: Archive todos binary
+ uses: actions/upload-artifact@v1
+ with:
+ name: todos-aarch64-unknown-linux-gnu
+ path: target/aarch64-unknown-linux-gnu/release/todos
+ - name: Build todos binary for Raspberry Pi 2/3/4 (32 bits)
+ run: cross build --verbose --release --package todos --target armv7-unknown-linux-gnueabihf
+ - name: Archive todos binary
+ uses: actions/upload-artifact@v1
+ with:
+ name: todos-armv7-unknown-linux-gnueabihf
+ path: target/armv7-unknown-linux-gnueabihf/release/todos