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

Commit

Permalink
Using worked method for macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
rk0cc committed Nov 1, 2021
1 parent eb9d5b3 commit 9f5ec95
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ jobs:
steps:
- uses: actions/checkout@v2.3.5
- name: Download library
run: curl https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_linux_amd64.zip --output hson.zip
uses: wei/wget@v1.1.1
with:
args: -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_linux_amd64.zip
- name: Run unzip
run: 7z e hson.zip
uses: TonyBogdanov/zip@1.0
with:
args: unzip -q 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 @@ -51,9 +55,9 @@ 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-action/hson_win_amd64.zip
run: C:\msys64\usr\bin\wget.exe -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0/hson_win_amd64.zip
- name: Run unzip
run: 7z e hson.zip
run: 7z x hson.zip
- name: Rename library and delete unused file
run: ren hson_win_amd64.dll hson.dll && del hson.zip && del hson_win_amd64.h
- name: Setup Dart
Expand All @@ -64,7 +68,7 @@ jobs:
run: dart pub get
- name: Do test
run: dart test
build_mac:
build_macos:
name: HSON test (macOS)
strategy:
fail-fast: false
Expand All @@ -77,9 +81,13 @@ jobs:
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
uses: wei/wget@v1.1.1
with:
args: -O hson.zip https://github.com/rk0cc/hson/releases/download/1.0.0-action/hson_macos_amd64.zip
- name: Run unzip
run: 7z e hson.zip
uses: TonyBogdanov/zip@1.0
with:
args: unzip -q 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
Expand Down

0 comments on commit 9f5ec95

Please sign in to comment.