使用词法分析,转换更加严谨 #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: face_plus CLI | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
include: | |
- os: ubuntu-latest | |
platform: arm | |
output-name: linux_x64/definetool | |
- os: macOS-latest | |
output-name: macos_x64/definetool | |
- os: windows-latest | |
output-name: win_x64/definetool.exe | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: DanTup/gh-actions/setup-dart@master | |
- name: platform | |
run: file /bin/ls | |
- name: install packages | |
run: pub get | |
- name: make release/linux_x64 directory | |
run: mkdir -p release/linux_x64 | |
- name: make release/macos_x64 directory | |
run: mkdir -p release/macos_x64 | |
- name: make release/win_x64 directory | |
run: mkdir -p release/win_x64 | |
- name: compile to native | |
run: dart compile exe bin/definetool.dart -v -o release/${{ matrix.output-name }} | |
- uses: actions/upload-artifact@v1 | |
with: | |
name: face_plus | |
path: release |