Skip to content

Commit

Permalink
snapcraft experimental pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Sep 30, 2024
1 parent 9b78f9e commit 3e30faa
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/snapcraft-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Snapcraft Experiment release
# This workflow bakes executables of the major platforms for Testing purposes
on:
merge_group:
workflow_dispatch:
push:
branches:
- develop
pull_request:
types:
- opened
- synchronize
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PR_NUMBER: ${{ github.event.number }}
jobs:
build-and-upload-artifacts:
timeout-minutes: 15
# Skip jobs for release PRs
# windows on recurring should be portable
if: ${{ !startsWith(github.head_ref, 'release/') }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: "ubuntu-20.04"
- os: "ubuntu-22.04"
- os: "ubuntu-24.04"

steps:
- name: Checkout branch
uses: actions/checkout@v4

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'
cache-dependency-path: package-lock.json

- name: Install packages
run: npm ci

- name: Bump version
shell: bash
run: npm --workspaces version prerelease --preid="$(git rev-parse --short HEAD)${{ github.event_name == 'pull_request' && '.pr-$PR_NUMBER' || '' }}" --no-git-tag-version

- name: Package
shell: bash
run: NODE_OPTIONS='--max_old_space_size=6144' npm run app-package -- --linux snap

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
if-no-files-found: ignore
name: ${{ matrix.os }}-artifacts-${{ github.run_number }}
path: |
packages/insomnia/dist/*.snap

0 comments on commit 3e30faa

Please sign in to comment.