fix: use rustls-tls for reqwest to avoid OpenSSL dependency on musl #2
Workflow file for this run
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: TUI Release | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| env: | |
| CARGO_TERM_COLOR: always | |
| SQLX_OFFLINE: "true" | |
| jobs: | |
| build-linux-musl: | |
| name: Build (Linux musl / WSL) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: x86_64-unknown-linux-musl | |
| - name: Install musl tools | |
| run: sudo apt-get install -y musl-tools | |
| - name: Build | |
| run: cargo build -p toki-tui --release --target x86_64-unknown-linux-musl | |
| - name: Rename binary | |
| run: cp target/x86_64-unknown-linux-musl/release/toki-tui toki-tui-linux-musl | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: toki-tui-linux-musl | |
| path: toki-tui-linux-musl | |
| build-windows: | |
| name: Build (Windows) | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Build | |
| run: cargo build -p toki-tui --release | |
| - name: Rename binary | |
| run: cp target\release\toki-tui.exe toki-tui-windows.exe | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: toki-tui-windows | |
| path: toki-tui-windows.exe | |
| build-macos: | |
| name: Build (macOS) | |
| runs-on: macos-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - target: x86_64-apple-darwin | |
| artifact: toki-tui-macos-intel | |
| - target: aarch64-apple-darwin | |
| artifact: toki-tui-macos-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| with: | |
| targets: ${{ matrix.target }} | |
| - name: Build | |
| run: cargo build -p toki-tui --release --target ${{ matrix.target }} | |
| - name: Rename binary | |
| run: cp target/${{ matrix.target }}/release/toki-tui ${{ matrix.artifact }} | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ matrix.artifact }} | |
| path: ${{ matrix.artifact }} | |
| release: | |
| name: Create GitHub Release | |
| needs: [build-linux-musl, build-windows, build-macos] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| merge-multiple: true | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| toki-tui-linux-musl | |
| toki-tui-windows.exe | |
| toki-tui-macos-intel | |
| toki-tui-macos-arm | |
| generate_release_notes: true |