Fix: macOS eraseDisk failing to complete before timeout due to carria… #6
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build Windows | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: {} | |
| permissions: | |
| attestations: write | |
| contents: read | |
| id-token: write | |
| env: | |
| CARGO_TERM_COLOR: always | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-pc-windows-msvc | |
| - name: Build | |
| run: cargo build --release --target x86_64-pc-windows-msvc --features icon | |
| - name: Rename binary | |
| shell: bash | |
| run: cp "target/x86_64-pc-windows-msvc/release/nextui-installer.exe" "nextui-installer-windows.exe" | |
| - name: Upload artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: nextui-installer-windows.exe | |
| path: nextui-installer-windows.exe | |
| release: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Download artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: nextui-installer-windows.exe | |
| path: artifacts | |
| - name: Upload to Beta Release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| tag_name: beta-${{ github.ref_name }} | |
| name: Beta Build (${{ github.ref_name }}) | |
| body: | | |
| Automated beta build from the `${{ github.ref_name }}` branch. | |
| **Warning:** This is a pre-release build and may contain bugs. | |
| prerelease: true | |
| files: artifacts/* | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |