Write the program output to the debug console while debugging #59
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v*.*.*" | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Setup npm | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 22 | |
| registry-url: https://registry.npmjs.org/ | |
| - name: Install X server | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y xvfb | |
| - name: "Setup OpenModelica Compiler" | |
| uses: OpenModelica/setup-openmodelica@v1.0 | |
| with: | |
| version: "stable" | |
| packages: | | |
| omc | |
| - run: omc --version | |
| - name: Setup gdb | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y gdb | |
| - name: gdb version | |
| run: gdb --version | |
| - name: Install the dependencies | |
| run: npm clean-install && npm run postinstall | |
| - name: Build package | |
| run: npm run esbuild | |
| - name: Tests | |
| run: | | |
| Xvfb -ac :99 -screen 0 1280x1024x16 & | |
| export DISPLAY=:99 | |
| npm run test | |
| - name: Package Extension | |
| run: npx vsce package | |
| - name: Archive vsix package | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: metamodelica-language-server.vsix | |
| path: metamodelica-language-server-*.vsix | |
| release: | |
| if: startsWith(github.ref, 'refs/tags/') | |
| needs: build | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: metamodelica-language-server.vsix | |
| - name: Release | |
| uses: softprops/action-gh-release@v2 | |
| with: | |
| files: | | |
| metamodelica-language-server-*.vsix | |
| fail_on_unmatched_files: true | |
| generate_release_notes: true | |
| append_body: true | |
| - name: Publish to Visual Studio Marketplace | |
| if: always() | |
| run: | | |
| npx vsce publish -i $(ls metamodelica-language-server-*.vsix) -p ${{ secrets.VSCE_PAT }} | |
| - name: Publish to Open VSX | |
| if: always() | |
| run: | | |
| npx ovsx publish $(ls metamodelica-language-server-*.vsix) -p ${{ secrets.OPEN_VSX_TOKEN }} |