Skip to content

Commit

Permalink
feat: add intel mac build action
Browse files Browse the repository at this point in the history
  • Loading branch information
fukusuket committed Jan 13, 2024
1 parent 9653b5b commit 12643d7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 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,10 +21,19 @@ jobs:
- name: Setup Nim
uses: jiro4989/setup-nim-action@v1

- name: Build Takajo Binary
- name: Update nimble libraries
run: |
nimble update
nimble build -d:release --threads:on
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'
Expand All @@ -43,9 +52,10 @@ 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
if: matrix.os == 'macos-latest'
uses: actions/setup-node@v4
Expand All @@ -59,7 +69,7 @@ jobs:
md-to-pdf ./*.md --md-file-encoding utf-8
mv ./README.pdf ./README-${{ github.event.inputs.release_ver }}-English.pdf
mv ./README-Japanese.pdf ./README-${{ github.event.inputs.release_ver }}-Japanese.pdf
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit 12643d7

Please sign in to comment.