Skip to content

Commit

Permalink
test gh action added (#27)
Browse files Browse the repository at this point in the history
* workflow added

* workflow demo
  • Loading branch information
MartinBarker authored Jun 3, 2024
1 parent fc93433 commit 963922a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build/release_SHORT

on:
#push:
# tags:
# - 'v*'
#schedule:
# - cron: '0 10 * * *'
workflow_dispatch:


jobs:
release:
runs-on: ${{ matrix.os }}
timeout-minutes: 60

env:
is_tag: ${{ startsWith(github.ref, 'refs/tags/v') }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_TOKEN }}

strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
# os: [windows-latest]

steps:
# Windows fix. See https://github.com/actions/checkout/issues/226
- run: git config --global core.autocrlf false

- name: Check out Git repository
uses: actions/checkout@v3

- name: Install Node.js, NPM and Yarn
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'yarn'

# Because of timeout issue https://github.com/yarnpkg/yarn/issues/4890
- run: yarn install --immutable --network-timeout 1000000

0 comments on commit 963922a

Please sign in to comment.