Skip to content

Commit

Permalink
not mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuked88 authored Mar 26, 2023
1 parent 8bb49b4 commit 6dde6a4
Showing 1 changed file with 0 additions and 77 deletions.
77 changes: 0 additions & 77 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,72 +56,6 @@ jobs:
alpaca.http-linux.zip
macos-latest:
runs-on: macOS-latest

steps:
- name: Clone
id: checkout
uses: actions/checkout@v1

- name: Dependencies
id: depends
run: |
brew update
wget https://boostorg.jfrog.io/artifactory/main/release/1.81.0/source/boost_1_81_0.tar.gz
tar xzf boost_1_81_0.tar.gz -C . --strip-components=1 boost_1_81_0/boost
- name: Build
id: make_build
run: |
make server_mac
- name: Codesign executable
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
env:
MACOS_CERTIFICATE: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_P12_BASE64 }}
MACOS_CERTIFICATE_PWD: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_PASSWORD }}
KEYCHAIN_PWD: ${{ secrets.KEYCHAIN_PASSWORD }}
MACOS_CERT_ID: ${{ secrets.APPLE_DEVELOPER_CERTIFICATE_ID }}

run: |
echo $MACOS_CERTIFICATE | base64 --decode > certificate.p12
security create-keychain -p $KEYCHAIN_PWD build.keychain
security default-keychain -s build.keychain
security unlock-keychain -p $KEYCHAIN_PWD build.keychain
security import certificate.p12 -k build.keychain -P $MACOS_CERTIFICATE_PWD -T /usr/bin/codesign
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k $KEYCHAIN_PWD build.keychain
/usr/bin/codesign --options runtime --force -s $MACOS_CERT_ID ./server_mac -v
- name: Clear
run: |
rm -rf boost
rm boost_1_81_0.tar.gz
- name: Zip executables
run: zip alpaca.http-mac.zip server_mac

- name: Notarize executables
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
env:
PROD_MACOS_NOTARIZATION_APPLE_ID: ${{ secrets.AC_USERNAME }}
PROD_MACOS_NOTARIZATION_PWD: ${{ secrets.AC_PASSWORD }}
PROD_MACOS_NOTARIZATION_TEAM_ID: ${{ secrets.PROD_MACOS_NOTARIZATION_TEAM_ID }}
run: |
xcrun notarytool store-credentials "notarytool-profile" --apple-id "$PROD_MACOS_NOTARIZATION_APPLE_ID" --team-id "$PROD_MACOS_NOTARIZATION_TEAM_ID" --password "$PROD_MACOS_NOTARIZATION_PWD"
xcrun notarytool submit "alpaca.http-mac.zip" --keychain-profile "notarytool-profile" --wait
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: macos
path: |
alpaca.http-mac.zip
windows-latest:
runs-on: windows-latest
Expand Down Expand Up @@ -167,7 +101,6 @@ jobs:
if: ${{ ( github.event_name == 'push' && github.ref == 'refs/heads/master' ) || github.event.inputs.create_release == 'true' }}
needs:
- windows-latest
- macos-latest
- ubuntu-latest

steps:
Expand Down Expand Up @@ -196,16 +129,6 @@ jobs:
asset_name: alpaca.http-win.zip
asset_content_type: application/octet-stream

- name: Upload mac release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: macos/alpaca.http-mac.zip
asset_name: alpaca.http-mac.zip
asset_content_type: application/octet-stream

- name: Upload linux release

uses: actions/upload-release-asset@v1
Expand Down

0 comments on commit 6dde6a4

Please sign in to comment.