hide last column of jog widget in print & cut dialog #1379
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 Publish Snap | |
| on: | |
| push: | |
| branches: | |
| - "*" | |
| tags: | |
| - "*" | |
| pull_request: | |
| branches: | |
| - "*" | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-test: | |
| if: github.repository == 'barebaric/rayforge' | |
| uses: ./.github/workflows/lint-test.yml | |
| build-publish-snap: | |
| name: Build and Publish Snap | |
| needs: [lint-test] # Run only if tests pass | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install Pixi | |
| uses: prefix-dev/setup-pixi@v0.9.4 | |
| with: | |
| pixi-version: latest | |
| environments: build | |
| - name: Compile Translations | |
| run: pixi run -e build compile-translations | |
| - name: Build snap | |
| uses: snapcore/action-build@v1 | |
| id: build | |
| env: | |
| SNAPCRAFT_DEBUG: "1" | |
| continue-on-error: true | |
| - name: Capture snapcraft logs on failure | |
| if: steps.build.outcome == 'failure' | |
| run: | | |
| echo "::group::Snapcraft log files" | |
| for log in /home/runner/.local/state/snapcraft/log/*.log; do | |
| if [ -f "$log" ]; then | |
| echo "=== $log ===" | |
| cat "$log" | |
| fi | |
| done | |
| echo "::endgroup::" | |
| echo "::group::LXD status" | |
| sudo lxc list --project snapcraft 2>&1 || true | |
| sudo lxc storage list 2>&1 || true | |
| echo "::endgroup::" | |
| echo "::group::System resources" | |
| free -h | |
| df -h | |
| echo "::endgroup::" | |
| - name: Fail if build failed | |
| if: steps.build.outcome == 'failure' | |
| run: exit 1 | |
| - name: Test built snap | |
| run: | | |
| sudo snap install ${{ steps.build.outputs.snap }} --dangerous | |
| rayforge --help | |
| - name: Determine release channel | |
| id: release_info | |
| if: | | |
| github.repository == 'barebaric/rayforge' && | |
| github.event_name == 'push' && | |
| (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/')) | |
| shell: bash | |
| run: | | |
| if [[ "${{ github.ref }}" == "refs/heads/main" ]]; then | |
| echo "channel=edge" >> "$GITHUB_OUTPUT" | |
| elif [[ "${{ github.ref_name }}" =~ ^[0-9]+\.[0-9]+\.[0-9]+- ]]; then | |
| echo "channel=beta,edge" >> "$GITHUB_OUTPUT" | |
| else | |
| echo "channel=stable,edge" >> "$GITHUB_OUTPUT" | |
| fi | |
| - name: Publish to Snapcraft | |
| if: steps.release_info.outputs.channel != '' | |
| uses: snapcore/action-publish@v1 | |
| env: | |
| SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.STORE_LOGIN }} | |
| with: | |
| snap: ${{ steps.build.outputs.snap }} | |
| release: ${{ steps.release_info.outputs.channel }} |