Skip to content

Commit

Permalink
ci: Updated mac job to a mac worker
Browse files Browse the repository at this point in the history
  • Loading branch information
xntrik committed Mar 4, 2024
1 parent 496d3e0 commit c055507
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/threatcl-pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,19 +59,19 @@ jobs:
build-macos:
permissions:
contents: write
needs: build-dev-linux
runs-on: ubuntu-latest
needs: cleanup
runs-on: macos-latest
strategy:
matrix:
goos: [darwin]
goarch: [amd64, arm64]
steps:
- name: Checkout
uses: actions/checkout@v4
- name: OXCross for CGO Support
run: |
mkdir ../../osxcross
git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target
# - name: OXCross for CGO Support
# run: |
# mkdir ../../osxcross
# git clone https://github.com/plentico/osxcross-target.git ../../osxcross/target
# - name: Set up clang
# uses: egor-tensin/setup-clang@v1
# with:
Expand All @@ -87,7 +87,7 @@ jobs:
goarch: ${{ matrix.goarch }}
release_tag: dev
overwrite: true
pre_command: export CGO_ENABLED=1 && export CC=/home/runner/work/osxcross/target/bin/o64-clang && export CXX=/home/runner/work/osxcross/target/bin/o64-clang++
pre_command: export CGO_ENABLED=1
project_path: cmd/threatcl
binary_name: threatcl
asset_name: "threatcl-${{ env.BUILD_TIME }}-${{ matrix.goos}}-${{ matrix.goarch }}"
Expand Down

0 comments on commit c055507

Please sign in to comment.