From caad39bcf7baaf71fa85a1874b44f2c33cf2a483 Mon Sep 17 00:00:00 2001 From: Adam Gastineau Date: Fri, 30 Jun 2023 11:12:27 -0700 Subject: [PATCH] chore: Automatic generator building --- .github/workflows/rust_build.yml | 35 ++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/rust_build.yml diff --git a/.github/workflows/rust_build.yml b/.github/workflows/rust_build.yml new file mode 100644 index 0000000..9726067 --- /dev/null +++ b/.github/workflows/rust_build.yml @@ -0,0 +1,35 @@ +on: push + +jobs: + build_rust: + name: Build ${{ matrix.target }} + runs-on: ubuntu-latest + + strategy: + fail-fast: false + matrix: + target: + [ + x86_64-pc-windows-gnu, + x86_64-unknown-linux-musl, + x86_64-apple-darwin, + ] + + steps: + - name: Checkout this repo + uses: actions/checkout@master + + - name: Compile + id: compile + uses: rust-build/rust-build.action@v1.4.3 + with: + RUSTTARGET: ${{ matrix.target }} + SRC_DIR: "support" + UPLOAD_MODE: none + + - name: Upload artifact + uses: actions/upload-artifact@v3 + with: + name: Rust Builds + path: | + ${{ steps.compile.outputs.BUILT_ARCHIVE }}