Browse and listen to thousands of radio stations across the globe right from your terminal ๐ ๐ป ๐ตโจ
radio
rust
tokio
web-radio
command-line-tool
tui
1on:
2 release:
3 types: [created]
4
5jobs:
6 release:
7 name: release x86_64-apple-darwin
8 runs-on: macos-13
9 strategy:
10 fail-fast: false
11 matrix:
12 target:
13 - x86_64-apple-darwin
14 - aarch64-apple-darwin
15
16 steps:
17 - name: Setup Fluent CI CLI
18 uses: fluentci-io/setup-fluentci@v5
19 - name: Installing needed dependencies
20 run: brew install protobuf llvm@15
21 - name: Installing Rust toolchain
22 uses: actions-rs/toolchain@v1
23 with:
24 toolchain: stable
25 target: ${{ matrix.target }}
26 override: true
27 - name: Checking out sources
28 uses: actions/checkout@v1
29 - name: Running cargo build
30 uses: actions-rs/cargo@v1
31 with:
32 command: build
33 toolchain: stable
34 args: --release --target ${{ matrix.target }}
35 - name: Install aarch64-apple-darwin toolchain
36 if: matrix.target == 'aarch64-apple-darwin'
37 run: rustup target add aarch64-apple-darwin
38 - name: Set env
39 run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
40 - name: Packaging final binary
41 shell: bash
42 run: |
43 cd target/${{ matrix.target }}/release
44 tar czvf ../../../tunein_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz tunein
45 shasum -a 256 ../../../tunein_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz > ../../../tunein_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.tar.gz.sha256
46 cd ../../../ && rm -rf target
47 - name: Upload release assets
48 run: |
49 for ext in tar.gz tar.gz.sha256; do
50 export FILE=tunein_${{ env.RELEASE_VERSION }}_${{ matrix.target }}.$ext
51 fluentci run github_pipeline release_upload
52 done
53 env:
54 TAG: ${{ env.RELEASE_VERSION }}
55 GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}