Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into cluster-monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
Devdutt Shenoi committed May 30, 2024
2 parents 42f4d2c + a41cc32 commit 00df7fc
Show file tree
Hide file tree
Showing 72 changed files with 7,214 additions and 3,258 deletions.
64 changes: 60 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,33 @@ on:
types: [published]

jobs:
release-tools:
name: Build tools/${{ matrix.build }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
build: [system-stats]
steps:
- uses: actions/checkout@v3

- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
profile: minimal
override: true
target: x86_64-unknown-linux-musl

- name: Build binary
working-directory: tools/${{ matrix.build }}
run: cargo build --verbose --release --target x86_64-unknown-linux-musl

- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
files: tools/${{ matrix.build }}/target/x86_64-unknown-linux-musl/release/${{ matrix.build }}

build-release:
name: Build release for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
Expand All @@ -26,15 +53,15 @@ jobs:
target: aarch64-apple-darwin
- build: linux-arm-gnu
os: ubuntu-latest
rust: 1.69.0
rust: stable
target: armv7-unknown-linux-gnueabihf
- build: linux-aarch-musl
os: ubuntu-latest
rust: stable
target: aarch64-unknown-linux-musl
- build: linux-aarch-gnu
os: ubuntu-latest
rust: 1.69.0
rust: stable
target: aarch64-unknown-linux-gnu
- build: windows
os: ubuntu-latest
Expand Down Expand Up @@ -96,11 +123,40 @@ jobs:
- name: Rename ${{ matrix.target }} binary
if: matrix.build != 'windows'
run: mv "target/${{ matrix.target }}/release/uplink" "uplink-${{ matrix.target }}"

- name: Rename ${{ matrix.target }} binary
if: matrix.build == 'windows'
run: mv "target/${{ matrix.target }}/release/uplink.exe" "uplink-${{ matrix.target }}.exe"


- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
files: uplink*

build-release-android:
name: Build release for android
runs-on: ubuntu-latest
container:
image: bytebeamio/rust-android
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3

- name: perms
run: chown root:root .

- name: Build for armv7
run: cargo ndk --target armv7-linux-androideabi --platform 23 build --release --bin uplink

- name: Build for aarch64
run: cargo ndk --target aarch64-linux-android --platform 23 build --release --bin uplink

- name: Rename uplink binaries
run: |
mv "target/aarch64-linux-android/release/uplink" "uplink-aarch64-linux-android"
mv "target/armv7-linux-androideabi/release/uplink" "uplink-armv7-linux-androideabi"
- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
Expand Down
Loading

0 comments on commit 00df7fc

Please sign in to comment.