■ ■ ■ ■ ■ ■
.github/workflows/release.yml
| skipped 2 lines |
3 | 3 | | on: |
4 | 4 | | push: |
5 | 5 | | tags: ["v*"] |
| 6 | + | pull_request: |
| 7 | + | branches: ["main"] |
6 | 8 | | |
7 | 9 | | env: |
8 | 10 | | CARGO_TERM_COLOR: always |
| skipped 7 lines |
16 | 18 | | fail-fast: false |
17 | 19 | | matrix: |
18 | 20 | | include: |
19 | | - | - target: x86_64-unknown-linux-gnu |
| 21 | + | - target: x86_64-unknown-linux-musl |
20 | 22 | | os: ubuntu-latest |
21 | 23 | | output: dum |
22 | | - | archive: tgz |
| 24 | + | archive: tar.gz |
| 25 | + | - target: arm-unknown-linux-musleabihf |
| 26 | + | os: ubuntu-latest |
| 27 | + | output: dum |
| 28 | + | archive: tar.gz |
| 29 | + | - target: aarch64-unknown-linux-musl |
| 30 | + | os: ubuntu-latest |
| 31 | + | output: dum |
| 32 | + | archive: tar.gz |
23 | 33 | | - target: x86_64-apple-darwin |
24 | 34 | | os: macos-latest |
25 | 35 | | output: dum |
| skipped 8 lines |
34 | 44 | | # output: dum |
35 | 45 | | # archive: tgz |
36 | 46 | | - target: x86_64-pc-windows-msvc |
| 47 | + | os: windows-latest |
| 48 | + | output: dum.exe |
| 49 | + | archive: zip |
| 50 | + | - target: aarch64-pc-windows-msvc |
37 | 51 | | os: windows-latest |
38 | 52 | | output: dum.exe |
39 | 53 | | archive: zip |
| skipped 38 lines |
78 | 92 | | - name: Copy and rename utility |
79 | 93 | | run: cp target/${{ matrix.target }}/release/${{ matrix.output }} ${{ matrix.output }} |
80 | 94 | | |
81 | | - | - name: Create archive (tgz, linux) |
| 95 | + | - name: Create archive (linux) |
82 | 96 | | if: ${{ matrix.os != 'macos-latest' && matrix.os != 'windows-latest' }} |
83 | 97 | | run: | |
84 | 98 | | tar -czvf dum-${{ matrix.target }}.${{ matrix.archive }} ${{ matrix.output }} |
85 | 99 | | sha256sum dum-${{ matrix.target }}.${{ matrix.archive }} > dum-${{ matrix.target }}-sha256sum.txt |
86 | 100 | | |
87 | | - | - name: Create archive (zip, windows) |
| 101 | + | - name: Create archive (windows) |
88 | 102 | | if: ${{ matrix.os == 'windows-latest' }} |
89 | 103 | | run: | |
90 | 104 | | tar.exe -a -c -f dum-${{ matrix.target }}.${{ matrix.archive }} ${{ matrix.output }} |
91 | 105 | | sha256sum.exe dum-${{ matrix.target }}.${{ matrix.archive }} > dum-${{ matrix.target }}-sha256sum.txt |
92 | 106 | | |
93 | | - | - name: Create archive (zip, macos) |
| 107 | + | - name: Create archive (macos) |
94 | 108 | | if: ${{ matrix.os == 'macos-latest' }} |
95 | 109 | | run: | |
96 | 110 | | zip dum-${{ matrix.target }}.${{ matrix.archive }} ${{ matrix.output }} |
| skipped 34 lines |