@@ -24,22 +24,51 @@ jobs:
2424 fail-fast : false
2525 matrix :
2626 target :
27+ - aarch64-apple-darwin
28+ - x86_64-apple-darwin
2729 - x86_64-pc-windows-msvc
2830 - aarch64-pc-windows-msvc
29- extra : ['bin']
30-
31+ - x86_64-unknown-linux-gnu
32+ - x86_64-unknown-linux-musl
33+ - aarch64-unknown-linux-gnu
34+ - aarch64-unknown-linux-musl
35+ - armv7-unknown-linux-gnueabihf
36+ - armv7-unknown-linux-musleabihf
37+ - riscv64gc-unknown-linux-gnu
38+ - loongarch64-unknown-linux-gnu
39+ - loongarch64-unknown-linux-musl
3140 include :
41+ - target : aarch64-apple-darwin
42+ os : macos-latest
43+ - target : x86_64-apple-darwin
44+ os : macos-latest
3245 - target : x86_64-pc-windows-msvc
33- extra : ' bin'
3446 os : windows-latest
3547 - target : aarch64-pc-windows-msvc
36- extra : ' bin'
3748 os : windows-11-arm
49+ - target : x86_64-unknown-linux-gnu
50+ os : ubuntu-22.04
51+ - target : x86_64-unknown-linux-musl
52+ os : ubuntu-22.04
53+ - target : aarch64-unknown-linux-gnu
54+ os : ubuntu-22.04
55+ - target : aarch64-unknown-linux-musl
56+ os : ubuntu-22.04
57+ - target : armv7-unknown-linux-gnueabihf
58+ os : ubuntu-22.04
59+ - target : armv7-unknown-linux-musleabihf
60+ os : ubuntu-22.04
61+ - target : riscv64gc-unknown-linux-gnu
62+ os : ubuntu-22.04
63+ - target : loongarch64-unknown-linux-gnu
64+ os : ubuntu-22.04
65+ - target : loongarch64-unknown-linux-musl
66+ os : ubuntu-22.04
3867
39- runs-on : ${{ matrix.os }}
68+ runs-on : ${{matrix.os}}
4069
4170 steps :
42- - uses : actions/checkout@v4
71+ - uses : actions/checkout@v6
4372
4473 - name : Install Wix Toolset 6 for Windows
4574 shell : pwsh
@@ -57,74 +86,34 @@ jobs:
5786 echo "targets = ['${{matrix.target}}']" >> rust-toolchain.toml
5887
5988 - name : Setup Rust toolchain
60- uses : actions-rust-lang/setup-rust-toolchain@v1
89+ uses : actions-rust-lang/setup-rust-toolchain@v1.12.0
6190 # WARN: Keep the rustflags to prevent from the winget submission error: `CAQuietExec: Error 0xc0000135`
6291 with :
6392 cache : false
6493 rustflags : ' '
6594
6695 - name : Setup Nushell
6796 uses : hustcer/setup-nu@v3
68- if : ${{ matrix.os != 'windows-11-arm' }}
6997 with :
70- version : 0.103.0
98+ version : 0.109.1
7199
72100 - name : Release Nu Binary
73101 id : nu
74- if : ${{ matrix.os != 'windows-11-arm' }}
75102 run : nu .github/workflows/release-pkg.nu
76103 env :
77104 OS : ${{ matrix.os }}
78105 REF : ${{ github.ref }}
79106 TARGET : ${{ matrix.target }}
80- _EXTRA_ : ${{ matrix.extra }}
81107
82- - name : Build Nu for Windows ARM64
83- id : nu0
84- shell : pwsh
85- if : ${{ matrix.os == 'windows-11-arm' }}
86- run : |
87- $env:OS = 'windows'
88- $env:REF = '${{ github.ref }}'
89- $env:TARGET = '${{ matrix.target }}'
90- $env:_EXTRA_ = '${{ matrix.extra }}'
91- cargo build --release --all --target aarch64-pc-windows-msvc
92- cp ./target/${{ matrix.target }}/release/nu.exe .
93- ./nu.exe -c 'version'
94- ./nu.exe ${{github.workspace}}/.github/workflows/release-pkg.nu
95-
96- # REF: https://github.com/marketplace/actions/gh-release
108+ # WARN: Don't upgrade this action due to the release per asset issue.
109+ # See: https://github.com/softprops/action-gh-release/issues/445
97110 - name : Publish Archive
98- uses : softprops/action-gh-release@v2.0.8
111+ uses : softprops/action-gh-release@v2.0.5
99112 if : ${{ startsWith(github.ref, 'refs/tags/') }}
100113 with :
114+ draft : true
101115 files : |
102116 ${{ steps.nu.outputs.msi }}
103- ${{ steps.nu0.outputs.msi }}
104117 ${{ steps.nu.outputs.archive }}
105- ${{ steps.nu0.outputs.archive }}
106118 env :
107119 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
108-
109- # sha256sum:
110- # name: Create Sha256sum
111- # needs: release
112- # runs-on: ubuntu-latest
113- # steps:
114- # - name: Download Release Archives
115- # env:
116- # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
117- # run: >-
118- # gh release download ${{ github.ref_name }}
119- # --repo ${{ github.repository }}
120- # --pattern '*'
121- # --dir release
122- # - name: Create Checksums
123- # run: cd release && shasum -a 256 * > ../SHA256SUMS
124- # - name: Publish Checksums
125- # uses: softprops/action-gh-release@v2.0.8
126- # with:
127- # draft: true
128- # files: SHA256SUMS
129- # env:
130- # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
0 commit comments