|
1 | 1 | --- |
2 | | -name: Build/Release boil |
| 2 | +name: Build boil |
3 | 3 |
|
4 | 4 | on: |
5 | 5 | pull_request: |
6 | 6 | paths: |
7 | | - - '.github/workflows/boil_build_release.yaml' |
8 | | - - 'rust-toolchain.toml' |
9 | | - - 'Cargo.*' |
10 | | - - '**.rs' |
11 | | - push: |
12 | | - tags: |
13 | | - - "boil-[0-9]+.[0-9]+.[0-9]+**" |
| 7 | + - ".github/workflows/boil_pr.yaml" |
| 8 | + - "rust-toolchain.toml" |
| 9 | + - "rust/boil/**.rs" |
| 10 | + - "Cargo.*" |
14 | 11 |
|
15 | 12 | env: |
16 | 13 | RUST_VERSION: 1.87.0 |
|
39 | 36 | with: |
40 | 37 | command: check ${{ matrix.checks }} |
41 | 38 |
|
42 | | - create-release: |
43 | | - name: Create Draft Release |
44 | | - if: github.event_name == 'push' |
45 | | - needs: |
46 | | - - cargo-deny |
47 | | - runs-on: ubuntu-latest |
48 | | - steps: |
49 | | - - name: Create Draft Release |
50 | | - uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 |
51 | | - with: |
52 | | - draft: true |
53 | | - |
54 | 39 | build: |
55 | 40 | name: Build boil |
56 | 41 | needs: |
|
59 | 44 | fail-fast: false |
60 | 45 | matrix: |
61 | 46 | targets: |
62 | | - - {target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm} |
63 | | - - {target: x86_64-unknown-linux-gnu, os: ubuntu-latest} |
64 | | - - {target: aarch64-apple-darwin, os: macos-latest} |
| 47 | + - { target: aarch64-unknown-linux-gnu, os: ubuntu-24.04-arm } |
| 48 | + - { target: x86_64-unknown-linux-gnu, os: ubuntu-latest } |
| 49 | + - { target: aarch64-apple-darwin, os: macos-latest } |
65 | 50 | runs-on: ${{ matrix.targets.os }} |
66 | 51 | steps: |
67 | 52 | - name: Checkout |
|
77 | 62 | - name: Build Binary |
78 | 63 | env: |
79 | 64 | TARGET: ${{ matrix.targets.target }} |
80 | | - run: cargo build --target "$TARGET" --release --package boil |
81 | | - |
82 | | - - name: Rename Binary |
83 | | - env: |
84 | | - TARGET: ${{ matrix.targets.target }} |
85 | | - run: mv "target/$TARGET/release/boil" "boil-$TARGET" |
86 | | - |
87 | | - - name: Upload Artifact to Release |
88 | | - if: github.event_name == 'push' |
89 | | - uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2 |
90 | | - with: |
91 | | - draft: false |
92 | | - files: boil-${{ matrix.targets.target }} |
| 65 | + run: cargo build --target "$TARGET" --package boil |
0 commit comments