diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml index fab0086..7700f3b 100644 --- a/.github/workflows/upload.yml +++ b/.github/workflows/upload.yml @@ -1,16 +1,14 @@ name: "Rust" -on: - issue_comment: - types: [created] - pull_request_target: - types: [opened, closed, synchronize] +on: [push, pull_request] jobs: - CLAssistant: upload-artefact: runs-on: ubuntu-latest steps: + - name: Install MinGW-w64 + run: sudo apt-get install -y mingw-w64 + - name: Checkout repository uses: actions/checkout@v4 @@ -19,8 +17,11 @@ jobs: with: target: x86_64-pc-windows-gnu + - name: "Build" + run: cargo build --target=x86_64-pc-windows-gnu + - name: Upload binary uses: actions/upload-artifact@v3 with: name: test_ci_binary - path: target/debug/test_ci + path: target/x86_64-pc-windows-gnu/debug/test_ci.exe diff --git a/src/main.rs b/src/main.rs index e7a11a9..d959f3c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,3 +1,3 @@ fn main() { - println!("Hello, world!"); + println!("Hello, orld!"); }