LoCo Release #31
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: LoCo Release | |
| on: | |
| push: | |
| tags: | |
| - 'v*' | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| # This ensures that if Windows fails, Ubuntu and macOS keep running | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| steps: | |
| # ------------------------------- | |
| # Checkout repo (Upgraded to v4) | |
| # ------------------------------- | |
| - uses: actions/checkout@v4 | |
| # ------------------------------- | |
| # Linux/macOS permissions | |
| # ------------------------------- | |
| - name: Set executable permission for bootstrap.sh | |
| if: runner.os != 'Windows' | |
| run: chmod +x bootstrap.sh | |
| # ------------------------------- | |
| # Build via bootstrap | |
| # ------------------------------- | |
| - name: Run bootstrap | |
| if: runner.os != 'Windows' | |
| # We use 'bash' to ensure the PATH export works | |
| shell: bash | |
| run: ./bootstrap.sh | |
| - name: Run bootstrap (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: .\bootstrap.ps1 | |
| # ------------------------------- | |
| # Upload binaries (Upgraded to v4) | |
| # ------------------------------- | |
| - name: Upload binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| # v4 requires unique names for each matrix run | |
| name: loco-${{ matrix.os }} | |
| path: bin/ |