GitHub Actions: macOS build
This commit is contained in:
parent
759ed8d8c7
commit
9fc85f6c5b
1 changed files with 39 additions and 7 deletions
46
.github/workflows/build.yml
vendored
46
.github/workflows/build.yml
vendored
|
@ -8,18 +8,16 @@ on:
|
|||
|
||||
jobs:
|
||||
|
||||
build:
|
||||
ubuntu:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: npm install
|
||||
run: cd webapp; npm install
|
||||
|
||||
- name: ESLint
|
||||
run: cd webapp; npm run check
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
|
@ -31,11 +29,14 @@ jobs:
|
|||
- name: Copy server binary for Cypress
|
||||
run: cp bin/linux/octoserver bin/
|
||||
|
||||
- uses: actions/upload-artifact@v1
|
||||
- name: Upload server package
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: octo-linux-amd64.tar.gz
|
||||
path: ${{ github.workspace }}/dist/octo-linux-amd64.tar.gz
|
||||
name: Upload server package
|
||||
|
||||
- name: ESLint
|
||||
run: cd webapp; npm run check
|
||||
|
||||
- name: "Test webapp: Jest"
|
||||
run: cd webapp; npm run test
|
||||
|
@ -45,3 +46,34 @@ jobs:
|
|||
|
||||
- name: Test server
|
||||
run: make server-test
|
||||
|
||||
macos:
|
||||
runs-on: macos-10.15
|
||||
|
||||
steps:
|
||||
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: npm install
|
||||
run: cd webapp; npm install
|
||||
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.15
|
||||
|
||||
- name: List Xcode versions
|
||||
run: ls -n /Applications/ | grep Xcode*
|
||||
|
||||
- name: Build macOS
|
||||
run: make mac-app
|
||||
env:
|
||||
DEVELOPER_DIR: /Applications/Xcode_12.3.app/Contents/Developer
|
||||
|
||||
- name: Upload macOS package
|
||||
uses: actions/upload-artifact@v1
|
||||
with:
|
||||
name: tasks-mac.zip
|
||||
path: ${{ github.workspace }}/mac/dist/tasks-mac.zip
|
||||
|
||||
|
|
Loading…
Reference in a new issue