diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1a0950c8..50d39b95 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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' @@ -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 @@ -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: