Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
Deploy test for mac
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Nov 1, 2021
1 parent b64a856 commit 24688c0
Showing 1 changed file with 29 additions and 7 deletions.
36 changes: 29 additions & 7 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,9 @@ jobs:
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
uses: wei/wget@v1.1.1
with:
args: -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0/hson_linux_amd64.zip
run: curl https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_linux_amd64.zip --output hson.zip
- name: Run unzip
uses: TonyBogdanov/zip@1.0
with:
args: unzip -q hson.zip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: mv hson_linux_amd64.so hson.so && rm hson.zip && rm hson_linux_amd64.h
- name: Setup Dart
Expand All @@ -55,7 +51,7 @@ jobs:
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: C:\msys64\usr\bin\wget.exe -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0/hson_win_amd64.zip
run: C:\msys64\usr\bin\wget.exe -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_win_amd64.zip
- name: Run unzip
run: 7z x hson.zip
- name: Rename library and delete unused file
Expand All @@ -66,5 +62,31 @@ jobs:
sdk: ${{ matrix.sdk }}
- name: Get dependencies
run: dart pub get
- name: Do test
run: dart test
build_mac:
name: HSON test (macOS)
strategy:
fail-fast: false
matrix:
sdk:
- stable
- beta
- dev
runs-on: macos-latest
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: curl https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_macos_amd64.zip --output hson.zip
- name: Run unzip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: mv hson_macos_amd64.dylib hson.dylib && rm hson.zip && rm hson_macos_amd64.h
- name: Setup Dart
uses: dart-lang/setup-dart@v1.3
with:
sdk: ${{ matrix.sdk }}
- name: Get dependencies
run: dart pub get
- name: Do test
run: dart test

0 comments on commit 24688c0

Please sign in to comment.