From f7e404a8db86aeb1af2c92ac8dc0aa4fc99fb53e Mon Sep 17 00:00:00 2001 From: Sweattypalms <100982104+Sweattypalms@users.noreply.github.com> Date: Mon, 24 Jun 2024 10:19:02 +0900 Subject: [PATCH] Update rust.yml (Make it so you can download the compiled file) --- .github/workflows/rust.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7d04a457..fccc8899 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -39,21 +39,18 @@ jobs: restore-keys: | ${{ runner.os }}-cargo-build- - - name: Print environment variables - run: printenv - - - name: Print current directory - run: pwd - - - name: List current directory contents - run: ls -la - - name: Build env: CARGO_MANIFEST_DIR: ${{ github.workspace }} - run: cargo build --verbose + run: cargo build --release --verbose - name: Run tests env: CARGO_MANIFEST_DIR: ${{ github.workspace }} run: cargo test --verbose + + - name: Upload executable + uses: actions/upload-artifact@v2 + with: + name: ferrumc2_0 + path: target/release/ferrumc2_0