Skip to content

Commit

Permalink
Enable building and publishing of binaries via flowzone
Browse files Browse the repository at this point in the history
Change-type: patch
Signed-off-by: Rahul Thakoor <[email protected]>
  • Loading branch information
rahul-thakoor committed Apr 16, 2024
1 parent 062bacd commit dda3275
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,29 @@
name: Flowzone

on:
pull_request:
types: [opened, synchronize, closed]
branches:
- 'main'
- 'master'
branches: [main, master]
# allow external contributions to use secrets within trusted code
pull_request_target:
types: [opened, synchronize, closed]
branches: [main, master]

jobs:
flowzone:
name: Flowzone
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
# prevent duplicate workflow executions for pull_request and pull_request_target
if: |
(
github.event.pull_request.head.repo.full_name == github.repository &&
github.event_name == 'pull_request'
) || (
github.event.pull_request.head.repo.full_name != github.repository &&
github.event_name == 'pull_request_target'
)
secrets: inherit
with:
rust_binaries: false
rust_toolchain: 1.67.1
rust_binaries: true
rust_toolchain: 1.76
cargo_targets: |
aarch64-unknown-linux-gnu,
armv7-unknown-linux-gnueabihf,
Expand Down
10 changes: 5 additions & 5 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
[target.aarch64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH",
]

[target.armv7-unknown-linux-gnueabihf]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH",
]

[target.x86_64-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH",
]

[target.i686-unknown-linux-gnu]
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH"
]
"apt-get update && apt-get install --assume-yes libdbus-1-dev:$CROSS_DEB_ARCH",
]

0 comments on commit dda3275

Please sign in to comment.