Skip to content

Commit

Permalink
feat: skip broken ubuntu builds, skip macos build
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasbach committed Mar 23, 2023
1 parent 2baa430 commit 25bbfbe
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 61 deletions.
45 changes: 18 additions & 27 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
workflow_dispatch:

env:
YARN_GPG: no
YARN_GPG: no
GH_TOKEN: ${{ secrets.GH_SECRET }}
DEBUG: electron-builder

Expand All @@ -23,9 +23,6 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Dependencies
run: yarn install --network-timeout 1000000000
- name: Build
Expand All @@ -44,31 +41,25 @@ jobs:
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Dependencies
run: yarn install --network-timeout 1000000000
- name: Build
run: yarn build --publish=never

build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: actions/setup-python@v4
with:
python-version: '2.7.18'
- uses: volta-cli/action@v3
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- uses: actions/setup-node@v1
with:
node-version: '12.x'
- name: Dependencies
run: yarn install --network-timeout 1000000000
- name: Build
run: yarn build --publish=never
# build_macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# - uses: actions/setup-python@v4
# with:
# python-version: '2.7.18'
# - uses: volta-cli/action@v3
# - uses: actions/cache@v2
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
# - name: Dependencies
# run: yarn install --network-timeout 1000000000
# - name: Build
# run: yarn build --publish=never
35 changes: 19 additions & 16 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ name: CI

on:
push:
tags:
tags:
- v*

workflow_dispatch:

env:
YARN_GPG: no
YARN_GPG: no
GH_TOKEN: ${{ secrets.GH_SECRET }}

jobs:
Expand All @@ -32,21 +32,9 @@ jobs:
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
- uses: volta-cli/action@v3
- uses: actions/cache@v2
- uses: actions/setup-python@v4
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: Dependencies
run: yarn install --network-timeout 1000000000
- name: Build
run: yarn build --publish=always

build_macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
python-version: '2.7.18'
- uses: volta-cli/action@v3
- uses: actions/cache@v2
with:
Expand All @@ -56,3 +44,18 @@ jobs:
run: yarn install --network-timeout 1000000000
- name: Build
run: yarn build --publish=always

# build_macos:
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-node@v3
# - uses: volta-cli/action@v3
# - uses: actions/cache@v2
# with:
# path: '**/node_modules'
# key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
# - name: Dependencies
# run: yarn install --network-timeout 1000000000
# - name: Build
# run: yarn build --publish=always
19 changes: 1 addition & 18 deletions electron-builder.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,24 +13,7 @@
"publish": ["github"]
},
"linux": {
"target": [
{
"target": "snap",
"arch": ["arm64", "armv7l", "x64"]
},
{
"target": "deb",
"arch": ["x64"]
},
{
"target": "zip",
"arch": ["arm64", "armv7l", "x64"]
},
{
"target": "AppImage",
"arch": ["arm64", "armv7l", "x64"]
}
],
"target": ["snap", "deb", "zip", "AppImage"],
"publish": ["github"]
},
"mac": {
Expand Down

0 comments on commit 25bbfbe

Please sign in to comment.