diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b53dcb4..a86584f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,32 +11,52 @@ jobs: build-linux: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --release --verbose - name: Run tests run: cargo test --verbose + - uses: actions/upload-artifact@v4 + with: + name: deoptimizer-linux-x86_64 + path: ./target/release/deoptimizer + retention-days: 5 build-windows: runs-on: windows-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --release --verbose - name: Run tests run: cargo test --verbose + - uses: actions/upload-artifact@v4 + with: + name: deoptimizer-windows-x86_64 + path: ./target/release/deoptimizer.exe + retention-days: 5 build-macos-x86: runs-on: macos-13 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --release --verbose - name: Run tests run: cargo test --verbose + - uses: actions/upload-artifact@v4 + with: + name: deoptimizer-macos-x86_64 + path: ./target/release/deoptimizer + retention-days: 5 build-macos-arm64: runs-on: macos-14 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Build run: cargo build --release --verbose - name: Run tests run: cargo test --verbose + - uses: actions/upload-artifact@v4 + with: + name: deoptimizer-macos-aarch64 + path: ./target/release/deoptimizer + retention-days: 5 diff --git a/.github/workflows/on_demand_build.yml b/.github/workflows/on_demand_build.yml deleted file mode 100644 index 5122f9d..0000000 --- a/.github/workflows/on_demand_build.yml +++ /dev/null @@ -1,23 +0,0 @@ -name: macos-build - -on: - workflow_dispatch: - branches: [ master ] - -env: - CARGO_TERM_COLOR: always - -jobs: - build-macos: - runs-on: macos-latest - steps: - - uses: actions/checkout@v3 - - name: Build - run: RUSTFLAGS="-C target-feature=+crt-static" cargo build --release - - name: 'Upload Artifact' - uses: actions/upload-artifact@v3 - with: - name: deoptimizer - path: ./target/release/deoptimizer - retention-days: 5 -