Add Pop-Out and Close functionality to dashboard [Closes #65] (#71) #15
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Relase | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
publish: | |
name: Publishing for ${{ matrix.target }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
target: [aarch64-apple-darwin, x86_64-apple-darwin, x86_64-unknown-linux-gnu, x86_64-pc-windows-msvc] | |
rust: [stable] | |
include: | |
- os: macos-latest | |
artifact_prefix: macos | |
target: aarch64-apple-darwin | |
binary_postfix: "" | |
- os: macos-latest | |
artifact_prefix: macos_intel | |
target: x86_64-apple-darwin | |
binary_postfix: "" | |
- os: ubuntu-latest | |
artifact_prefix: linux | |
target: x86_64-unknown-linux-gnu | |
binary_postfix: "" | |
- os: windows-latest | |
artifact_prefix: windows | |
target: x86_64-pc-windows-msvc | |
binary_postfix: ".exe" | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Installing Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
target: ${{ matrix.target }} | |
- name: "Install Rust (ARM)" | |
if: matrix.target == 'aarch64-apple-darwin' | |
shell: bash | |
run: "rustup target add aarch64-apple-darwin" | |
- name: "Install Rust (Intel)" | |
if: matrix.target == 'x86_64-apple-darwin' | |
shell: bash | |
run: "rustup target add x86_64-apple-darwin" | |
- name: Installing needed macOS dependencies | |
if: matrix.os == 'macos-latest' | |
run: brew install [email protected] | |
- name: Installing needed Ubuntu dependencies | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y -qq pkg-config libssl-dev libxcb1-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev | |
- name: Running cargo build | |
run: cargo build --release --all-features --target ${{ matrix.target }} | |
- name: Packaging final binary | |
shell: bash | |
run: | | |
cd target/${{ matrix.target }}/release | |
BINARY_NAME=cli-network-viewer${{ matrix.binary_postfix }} | |
RELEASE_NAME=cli-network-viewer-${{ matrix.artifact_prefix }} | |
tar czvf $RELEASE_NAME.tar.gz $BINARY_NAME | |
if [[ ${{ runner.os }} == 'Windows' ]]; then | |
certutil -hashfile $RELEASE_NAME.tar.gz sha256 | grep -E [A-Fa-f0-9]{64} > $RELEASE_NAME.sha256 | |
else | |
shasum -a 256 $RELEASE_NAME.tar.gz > $RELEASE_NAME.sha256 | |
fi | |
- name: Upload binary | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.target }} binary | |
path: target/${{ matrix.target }}/release/cli-network-viewer-${{ matrix.artifact_prefix }}.tar.gz | |
- name: Upload sha | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ matrix.target }} sha | |
path: target/${{ matrix.target }}/release/cli-network-viewer-${{ matrix.artifact_prefix }}.sha256 | |
- name: Releasing assets | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
target/${{ matrix.target }}/release/cli-network-viewer-${{ matrix.artifact_prefix }}.tar.gz | |
target/${{ matrix.target }}/release/cli-network-viewer-${{ matrix.artifact_prefix }}.sha256 |