naiveproxy/.github/workflows/build.yml

41 lines
884 B
YAML
Raw Normal View History

2021-02-28 06:44:08 +03:00
on:
push:
branches:
- master
release:
types:
- created
jobs:
2021-02-28 11:41:34 +03:00
macos:
runs-on: macos-latest
2021-02-28 12:42:42 +03:00
strategy:
matrix:
arch: [arm64, arm]
2021-02-28 06:44:08 +03:00
steps:
2021-02-28 10:04:36 +03:00
- uses: actions/checkout@v2
2021-02-28 11:41:34 +03:00
- run: brew install ninja
2021-02-28 10:53:55 +03:00
- run: ./get-clang.sh
working-directory: src
- run: ./build.sh
working-directory: src
- run: ./tests/basic.sh src/out/Release/naive
2021-02-28 11:41:34 +03:00
win:
runs-on: windows-latest
defaults:
run:
shell: bash
2021-02-28 10:53:55 +03:00
strategy:
matrix:
2021-02-28 12:42:42 +03:00
arch: [arm]
2021-02-28 10:53:55 +03:00
env:
2021-02-28 11:41:34 +03:00
EXTRA_FLAGS: 'target_cpu="${{ matrix.arch }}"'
2021-02-28 10:53:55 +03:00
steps:
- uses: actions/checkout@v2
2021-02-28 11:41:34 +03:00
- run: cinst ninja
2021-02-28 10:04:36 +03:00
- run: ./get-clang.sh
working-directory: src
- run: ./build.sh
working-directory: src
- run: ./tests/basic.sh src/out/Release/naive
2021-02-28 12:42:42 +03:00
if: ${{ matrix.arch != 'arm' }}