diff --git a/.github/workflows/upload.yml b/.github/workflows/upload.yml new file mode 100644 index 0000000..6cb92a0 --- /dev/null +++ b/.github/workflows/upload.yml @@ -0,0 +1,27 @@ +name: Upload Binary + +on: + push: + branches: [ "main" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + strategy: + matrix: + os: [ubuntu-latest, macos-latest] + runs-on: ${{ matrix.os }} + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose --release + - name: Upload + uses: actions/upload-artifact@v3 + with: + name: inject_42h-${{ matrix.os }} + path: upload/* + retention-days: 1