From 45d33f53834dbe76f01ea567b7481e00482fbea1 Mon Sep 17 00:00:00 2001 From: Floaterest <56704092+floaterest@users.noreply.github.com> Date: Sun, 22 Oct 2023 10:57:13 -0400 Subject: [PATCH] Create rust.yml --- .github/workflows/rust.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/rust.yml diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..88ae42b --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,29 @@ +name: Build Release +on: + push: + workflow_dispatch: + +jobs: + build: + name: Build + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + target: ['x86_64-unknown-linux-gnu', 'x86_64-pc-windows-gnu'] + steps: + - uses: actions/checkout@v2 + + - name: 'Windows: Install GCC linker' + run: sudo apt install mingw-w64 + if: matrix.target == 'x86_64-pc-windows-gnu' + + - name: Build for ${{ matrix.target }} + run: | + rustup target add ${{ matrix.target }} + cargo build --release --target ${{ matrix.target }} + - uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.target }} + path: | + target/${{ matrix.target }}/release