Skip to content

Commit 89b1a70

Browse files
committed
Update build.yaml
1 parent 221259d commit 89b1a70

File tree

1 file changed

+15
-13
lines changed

1 file changed

+15
-13
lines changed

.github/workflows/build.yaml

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,26 @@ env:
77

88
jobs:
99
build:
10-
1110
runs-on: ubuntu-latest
1211
strategy:
13-
matrix:
14-
BUILD_TARGET: [release] # refers to a cargo profile
12+
matrix:
13+
BUILD_TARGET: [release]
14+
1515
outputs:
1616
release_built: ${{ steps.build.outputs.release_built }}
17+
1718
steps:
18-
- uses: actions/checkout@v4
19-
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
19+
- uses: actions/checkout@v4
20+
21+
- name: Build binaries in "${{ matrix.BUILD_TARGET }}" mode
22+
id: build
2023
run: cargo build --profile ${{ matrix.BUILD_TARGET }}
21-
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
24+
25+
- name: Run tests in "${{ matrix.BUILD_TARGET }}" mode
2226
run: cargo test --profile ${{ matrix.BUILD_TARGET }}
23-
- name: Upload release artifact
24-
-uses: actions/upload-artifact@v4
25-
with:
26-
name: <my-app>
27-
path: target/${{ matrix.BUILD_TARGET }}/<my-app>
2827

29-
30-
28+
- name: Upload release artifact
29+
uses: actions/upload-artifact@v4
30+
with:
31+
name: github-action-test
32+
path: target/${{ matrix.BUILD_TARGET }}/github-action-test

0 commit comments

Comments
 (0)