Skip to content

Use GNU C library on Linux #9

Use GNU C library on Linux

Use GNU C library on Linux #9

name: Build notificox
on:
push:
jobs:
build:
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:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download artifacts
uses: actions/download-artifact@v4
with:
pattern: notificox-*
path: artifacts
merge-multiple: true