Update public-release to v1.0.6 (7th Official Milestone) #3
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: Build and Release Native Binaries | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| jobs: | |
| build: | |
| name: Build for ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| include: | |
| - os: ubuntu-latest | |
| artifact_name: tech | |
| asset_name: tech-linux-x64 | |
| - os: macos-latest | |
| artifact_name: techscript | |
| asset_name: tech-macos-x64 | |
| - os: windows-latest | |
| artifact_name: techscript.exe | |
| asset_name: techscript-windows-x64.exe | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Install Rust toolchain | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Build in Release mode | |
| run: | | |
| cd runtime | |
| cargo build --release | |
| - name: Rename and Prepare Assets | |
| shell: bash | |
| run: | | |
| if [ "${{ matrix.os }}" = "windows-latest" ]; then | |
| mv runtime/target/release/techscript.exe ${{ matrix.asset_name }} | |
| else | |
| # Rename based on actual binary name produced by Cargo | |
| if [ -f "runtime/target/release/techscript" ]; then | |
| mv runtime/target/release/techscript ${{ matrix.asset_name }} | |
| else | |
| mv runtime/target/release/tech ${{ matrix.asset_name }} | |
| fi | |
| chmod +x ${{ matrix.asset_name }} | |
| fi | |
| - name: Upload Release Assets | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: ${{ matrix.asset_name }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |