Skip to content

Commit

Permalink
add workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Nordquist committed May 10, 2024
1 parent a6e16dc commit ae66fe9
Show file tree
Hide file tree
Showing 3 changed files with 811 additions and 756 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Build

on:
push:
branches:
- master
- tnordquist/add-workflows

jobs:
example_matrix:
strategy:
matrix:
build:
- os: ubuntu-latest
task: linux
- os: windows-latest
task: win
- os: macos-atest
task: mac
runs-on: ${{ matrix.build.os }}
steps:
- if: matrix.build.os == 'ubuntu-latest'
run: sudo snap install snapcraft --classic
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm install -g yarn
- run: yarn
- run: yarn build
- run: yarn prepare-release
- run: yarn package ${{ matrix.build.task }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
4 changes: 2 additions & 2 deletions package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import * as dotProp from 'dot-prop'

const linuxAppImage: builder.CliOptions = {
x64: true,
ia32: true,
ia32: false,
armv7l: true,
arm64: false,
projectDir: './build/clean',
Expand Down Expand Up @@ -52,7 +52,7 @@ const mac: builder.CliOptions = {
x64: true,
ia32: true,
armv7l: false,
arm64: false,
arm64: true,
projectDir: './build/clean',
publish: 'always',
}
Expand Down
Loading

0 comments on commit ae66fe9

Please sign in to comment.