Simplifications for typemap generation and test fixtures #106
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: pr | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: '0' | |
| - name: Install node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: '24' | |
| cache: 'yarn' | |
| - name: Install ldid | |
| uses: MOZGIII/install-ldid-action@v1 | |
| with: | |
| tag: v2.1.5-procursus6 | |
| - name: Build | |
| run: | | |
| yarn install | |
| yarn build | |
| - name: Test | |
| run: | | |
| yarn test | |
| - name: Create binaries | |
| run: | | |
| yarn binary | |
| - name: Rename | |
| run: | | |
| mv astgen-linux-x64 astgen-linux | |
| mv astgen-linux-arm64 astgen-linux-arm | |
| mv astgen-macos-x64 astgen-macos | |
| mv astgen-macos-arm64 astgen-macos-arm | |
| mv astgen-win-x64.exe astgen-win.exe | |
| - name: Run gzexe | |
| run: | | |
| gzexe astgen-linux | |
| rm astgen-linux~ | |
| gzexe astgen-linux-arm | |
| rm astgen-linux-arm~ | |
| - name: Print size and version | |
| run: | | |
| ls -lh ./astgen* | |
| ASTGEN_VERSION=$(./astgen-linux --version) | |
| echo "ASTGEN_VERSION=$ASTGEN_VERSION" >> $GITHUB_ENV | |
| echo "astgen version is: $ASTGEN_VERSION" | |
| - name: Upload binaries to release | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| prerelease: true | |
| target_commitish: ${{ github.head_ref || github.ref_name }} | |
| tag_name: v${{ env.ASTGEN_VERSION }}-prerelease | |
| files: | | |
| astgen-win.exe | |
| astgen-macos | |
| astgen-macos-arm | |
| astgen-linux | |
| astgen-linux-arm |