|
10 | 10 | type: string |
11 | 11 |
|
12 | 12 | jobs: |
13 | | - build: |
14 | | - name: Build |
15 | | - runs-on: ${{ matrix.os }} |
16 | | - strategy: |
17 | | - matrix: |
18 | | - include: |
19 | | - - os: ubuntu-24.04 |
20 | | - file: forest-${{ github.event.inputs.tag }}-linux-amd64.zip |
21 | | - - os: macos-latest |
22 | | - file: forest-${{ github.event.inputs.tag }}-macos-arm64.zip |
23 | | - steps: |
24 | | - - name: Checkout Sources |
25 | | - uses: actions/checkout@v4 |
26 | | - - name: Homebrew Utils |
27 | | - if: contains(matrix.os, 'macos') |
28 | | - run: | |
29 | | - brew install --verbose coreutils |
30 | | - - name: Rust Cache |
31 | | - uses: Swatinem/rust-cache@v2 |
32 | | - timeout-minutes: 5 |
33 | | - continue-on-error: true |
34 | | - - uses: actions/setup-go@v5 |
35 | | - with: |
36 | | - go-version-file: "go.work" |
37 | | - - name: Cargo Build |
38 | | - run: | |
39 | | - mkdir -p release-binaries forest-${{ github.event.inputs.tag }} |
40 | | - cargo install --locked --path . --force --root release-binaries |
41 | | - mv -v release-binaries/bin/* forest-${{ github.event.inputs.tag }} |
42 | | - - name: Pack artifacts |
43 | | - run: | |
44 | | - for bin in forest-${{ github.event.inputs.tag }}/*; do |
45 | | - sha256sum $bin > $bin.sha256 |
46 | | - done |
47 | | - cp -rv CHANGELOG.md LICENSE-APACHE LICENSE-MIT README.md forest-${{ github.event.inputs.tag }} |
48 | | - zip -r ${{ matrix.file }} forest-${{ github.event.inputs.tag }} |
49 | | - - name: Upload Binary |
50 | | - uses: svenstaro/upload-release-action@v2 |
51 | | - with: |
52 | | - repo_token: ${{ github.token }} |
53 | | - file: ${{ matrix.file }} |
54 | | - asset_name: ${{ matrix.file }} |
55 | | - tag: ${{ github.event.inputs.tag }} |
56 | | - overwrite: true |
57 | | - prerelease: true |
| 13 | + # build: |
| 14 | + # name: Build |
| 15 | + # runs-on: ${{ matrix.os }} |
| 16 | + # strategy: |
| 17 | + # matrix: |
| 18 | + # include: |
| 19 | + # - os: ubuntu-24.04 |
| 20 | + # file: forest-${{ github.event.inputs.tag }}-linux-amd64.zip |
| 21 | + # - os: macos-latest |
| 22 | + # file: forest-${{ github.event.inputs.tag }}-macos-arm64.zip |
| 23 | + # steps: |
| 24 | + # - name: Checkout Sources |
| 25 | + # uses: actions/checkout@v4 |
| 26 | + # - name: Homebrew Utils |
| 27 | + # if: contains(matrix.os, 'macos') |
| 28 | + # run: | |
| 29 | + # brew install --verbose coreutils |
| 30 | + # - name: Rust Cache |
| 31 | + # uses: Swatinem/rust-cache@v2 |
| 32 | + # timeout-minutes: 5 |
| 33 | + # continue-on-error: true |
| 34 | + # - uses: actions/setup-go@v5 |
| 35 | + # with: |
| 36 | + # go-version-file: "go.work" |
| 37 | + # - name: Cargo Build |
| 38 | + # run: | |
| 39 | + # mkdir -p release-binaries forest-${{ github.event.inputs.tag }} |
| 40 | + # cargo install --locked --path . --force --root release-binaries |
| 41 | + # mv -v release-binaries/bin/* forest-${{ github.event.inputs.tag }} |
| 42 | + # - name: Pack artifacts |
| 43 | + # run: | |
| 44 | + # for bin in forest-${{ github.event.inputs.tag }}/*; do |
| 45 | + # sha256sum $bin > $bin.sha256 |
| 46 | + # done |
| 47 | + # cp -rv CHANGELOG.md LICENSE-APACHE LICENSE-MIT README.md forest-${{ github.event.inputs.tag }} |
| 48 | + # zip -r ${{ matrix.file }} forest-${{ github.event.inputs.tag }} |
| 49 | + # - name: Upload Binary |
| 50 | + # uses: svenstaro/upload-release-action@v2 |
| 51 | + # with: |
| 52 | + # repo_token: ${{ github.token }} |
| 53 | + # file: ${{ matrix.file }} |
| 54 | + # asset_name: ${{ matrix.file }} |
| 55 | + # tag: ${{ github.event.inputs.tag }} |
| 56 | + # overwrite: true |
| 57 | + # prerelease: true |
58 | 58 | publish: |
59 | 59 | name: cargo publish |
60 | 60 | runs-on: ubuntu-24.04-arm |
|
0 commit comments