From 827120b5d0411046b341322b32abbbbb5c341edd Mon Sep 17 00:00:00 2001 From: nicknase27 <80787938+nicknase27@users.noreply.github.com> Date: Fri, 17 Jul 2026 12:49:42 +0200 Subject: [PATCH] actions --- .github/workflows/build.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..4010006 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,37 @@ +name: Build + +on: + push: + branches: [master] + pull_request: + +jobs: + build: + strategy: + matrix: + include: + - os: ubuntu-latest + target: x86_64-unknown-linux-gnu + binary: ncmprs + + - os: windows-latest + target: x86_64-pc-windows-msvc + binary: ncmprs.exe + + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + + - uses: dtolnay/rust-toolchain@stable + with: + targets: ${{ matrix.target }} + + - uses: Swatinem/rust-cache@v2 + + - run: cargo build --release --target ${{ matrix.target }} + + - uses: actions/upload-artifact@v4 + with: + name: ${{ matrix.target }} + path: target/${{ matrix.target }}/release/${{ matrix.binary }}