From 9f5ec95fcf3ea3f3aba4c5b1e03a3bac00b5fd51 Mon Sep 17 00:00:00 2001 From: Cyrus Chan Date: Mon, 1 Nov 2021 19:12:03 +0800 Subject: [PATCH] Using worked method for macOS --- .github/workflows/dart.yml | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index 9b865fa..4d67817 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -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 @@ -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 @@ -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 @@ -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