add workflows
This commit is contained in:
3
.github/CODEOWNERS
vendored
Normal file
3
.github/CODEOWNERS
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
package.ts @thomasnordquist
|
||||||
|
.github @thomasnordquist
|
||||||
|
scripts @thomasnordquist
|
||||||
39
.github/workflows/cd.yml
vendored
Normal file
39
.github/workflows/cd.yml
vendored
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- tnordquist/add-workflows
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: ${{ github.ref }}
|
||||||
|
cancel-in-progress: false
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
platform_matrix:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
build:
|
||||||
|
- os: ubuntu-latest
|
||||||
|
task: linux
|
||||||
|
- os: windows-latest
|
||||||
|
task: win
|
||||||
|
- os: macos-latest
|
||||||
|
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 }}
|
||||||
@@ -5,7 +5,7 @@ import * as dotProp from 'dot-prop'
|
|||||||
|
|
||||||
const linuxAppImage: builder.CliOptions = {
|
const linuxAppImage: builder.CliOptions = {
|
||||||
x64: true,
|
x64: true,
|
||||||
ia32: true,
|
ia32: false,
|
||||||
armv7l: true,
|
armv7l: true,
|
||||||
arm64: false,
|
arm64: false,
|
||||||
projectDir: './build/clean',
|
projectDir: './build/clean',
|
||||||
@@ -50,9 +50,9 @@ const winAppx: builder.CliOptions = {
|
|||||||
|
|
||||||
const mac: builder.CliOptions = {
|
const mac: builder.CliOptions = {
|
||||||
x64: true,
|
x64: true,
|
||||||
ia32: true,
|
ia32: false,
|
||||||
armv7l: false,
|
armv7l: false,
|
||||||
arm64: false,
|
arm64: true,
|
||||||
projectDir: './build/clean',
|
projectDir: './build/clean',
|
||||||
publish: 'always',
|
publish: 'always',
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user