Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket authored Jan 13, 2024
1 parent 7a702ae commit 332e4ae
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, ubuntu-latest, macos-latest]
os: [windows-latest, ubuntu-latest, macos-latest, macos-12]

steps:
- name: Checkout Repository
Expand All @@ -21,11 +21,20 @@ jobs:
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1

- name: Build Takajo Binary
- name: Update nimble libraries
run: |
nimble update
- name: Build Takajo binary
if: matrix.os != 'macos-12'
run: |
nimble build -d:release --threads:on
- name: Build Takajo binary for Intel Mac
if: matrix.os == 'macos-12'
run: |
nimble build -d:release --threads:on --os:macosx --cpu:amd64
- name: Package and Zip - Windows
if: matrix.os == 'windows-latest'
run: |
Expand All @@ -43,7 +52,8 @@ jobs:
cp mitre-attack.json artifacts/
case ${{ matrix.os }} in
'ubuntu-latest') zip -j artifacts/takajo-${{ github.event.inputs.release_ver }}-linux.zip artifacts/* ;;
'macos-latest') zip -j artifacts/takajo-${{ github.event.inputs.release_ver }}-mac.zip artifacts/* ;;
'macos-latest') zip -j artifacts/takajo-${{ github.event.inputs.release_ver }}-mac-arm.zip artifacts/* ;;
'macos-12') zip -j artifacts/takajo-${{ github.event.inputs.release_ver }}-mac-intel.zip artifacts/* ;;
esac
- name: Setup node
Expand Down

0 comments on commit 332e4ae

Please sign in to comment.