Skip to content

Fix lint

Fix lint #53

name: Build notificox
on:
push:
jobs:
build-notificox:
strategy:
matrix:
platform:
- os: ubuntu-latest
bin: notificox
target: x86_64-unknown-linux-gnu
artifact: notificox-x86_64-unknown-linux-gnu
- os: windows-latest
bin: notificox.exe
target: x86_64-pc-windows-msvc
artifact: notificox-x86_64-pc-windows-msvc.exe
- os: macos-latest
bin: notificox
target: aarch64-apple-darwin
artifact: notificox-aarch64-apple-darwin
runs-on: ${{ matrix.platform.os }}
steps:
- uses: actions/checkout@v4
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
target: ${{ matrix.platform.target }}
- uses: Swatinem/rust-cache@v2
- name: Build package
run: cargo build --target ${{ matrix.platform.target }} --release --package notificox
- run: mkdir artifacts/ && mv target/${{ matrix.platform.target }}/release/${{ matrix.platform.bin }} artifacts/${{ matrix.platform.artifact }}
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.platform.artifact }}
path: artifacts/${{ matrix.platform.artifact }}
release:
name: Release
needs: build-notificox
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: notificox-*
path: artifacts
merge-multiple: true
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
draft: true
files: |
artifacts/notificox-*