|
9 | 9 | build:
|
10 | 10 | name: Build and release
|
11 | 11 | runs-on: macos-latest
|
12 |
| - strategy: |
13 |
| - matrix: |
14 |
| - arch: [amd64, aarch64] |
15 | 12 |
|
16 | 13 | steps:
|
17 | 14 | - name: Checkout code
|
18 |
| - uses: actions/checkout@v2 |
| 15 | + uses: actions/checkout@v4 |
19 | 16 |
|
20 |
| - - name: Build (amd64) |
21 |
| - if: matrix.arch == 'amd64' |
22 |
| - run: make BUILD_ARCH=x86_64 |
23 |
| - |
24 |
| - - name: Build (aarch64) |
25 |
| - if: matrix.arch == 'aarch64' |
26 |
| - run: make BUILD_ARCH=arm64 |
| 17 | + - name: Build |
| 18 | + run: make |
27 | 19 |
|
28 | 20 | - name: Create Release
|
29 |
| - if: matrix.arch == 'amd64' |
30 | 21 | id: create_release
|
31 |
| - uses: actions/create-release@v1 |
32 |
| - env: |
33 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 22 | + uses: softprops/action-gh-release@v2 |
34 | 23 | with:
|
35 |
| - tag_name: ${{ github.ref }} |
36 |
| - release_name: Release ${{ github.ref }} |
37 | 24 | draft: false
|
38 | 25 | prerelease: false
|
39 |
| - |
40 |
| - - name: Upload Release Asset (amd64) |
41 |
| - if: matrix.arch == 'amd64' |
42 |
| - uses: actions/upload-release-asset@v1 |
43 |
| - env: |
44 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
45 |
| - with: |
46 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
47 |
| - asset_path: ./trash |
48 |
| - asset_name: trash-amd64 |
49 |
| - asset_content_type: application/octet-stream |
50 |
| - |
51 |
| - - name: Upload Release Asset (aarch64) |
52 |
| - if: matrix.arch == 'aarch64' |
53 |
| - uses: actions/upload-release-asset@v1 |
54 |
| - env: |
55 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
56 |
| - with: |
57 |
| - upload_url: ${{ steps.create_release.outputs.upload_url }} |
58 |
| - asset_path: ./trash |
59 |
| - asset_name: trash-aarch64 |
60 |
| - asset_content_type: application/octet-stream |
| 26 | + files: | |
| 27 | + trash |
| 28 | + name: ${{ github.ref }} |
0 commit comments