index : static-web-server.git

ascending towards madness

author Jose Quintana <joseluisquintana20@gmail.com> 2021-12-14 7:40:13.0 +00:00:00
committer Jose Quintana <joseluisquintana20@gmail.com> 2021-12-14 7:40:13.0 +00:00:00
commit
397110e35ebe47fac08ce4b7707088f7fb870496 [patch]
tree
dbe2865540f6d47f67e3cafeab48dc6494c7f0e4
parent
018b27c2d43ef165e63e9f12e442c1f063ff7158
download
397110e35ebe47fac08ce4b7707088f7fb870496.tar.gz

refactor: drop macos-10.15 beta xcode+sdk for aarch64-apple-darwin

since Xcode 13.0 uses SDK 11.3 by default on macos-11 (latest)

Diff

 .github/workflows/devel.yml   | 11 ++---------
 .github/workflows/release.yml | 14 ++------------
 2 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/.github/workflows/devel.yml b/.github/workflows/devel.yml
index a482a80..355fa7c 100644
--- a/.github/workflows/devel.yml
+++ b/.github/workflows/devel.yml
@@ -84,11 +84,11 @@ jobs:
            rust: nightly
            target: arm-unknown-linux-gnueabihf
          - build: macos
            os: macos-latest
            os: macos-11
            rust: nightly
            target: x86_64-apple-darwin
          - build: macos-arm64
            os: macos-latest
            os: macos-11
            rust: nightly
            target: aarch64-apple-darwin
          - build: windows-msvc
@@ -141,13 +141,6 @@ jobs:
        # Can't run tests: cross-compiling
        echo "SKIP_TESTS=yes" >> $GITHUB_ENV

        # Use the beta compiler
        sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer/

        # Set SDK environment variables
        echo "SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path)" >> $GITHUB_ENV
        echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version)" >> $GITHUB_ENV

    - name: Run tests
      if: env.SKIP_TESTS == ''
      run: ${{ env.CARGO }} test --verbose ${{ env.TARGET_FLAGS }}
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index dd1aa9a..6875834 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -92,11 +92,11 @@ jobs:
          rust: nightly
          target: arm-unknown-linux-gnueabihf
        - build: macos
          os: macos-latest
          os: macos-11
          rust: nightly
          target: x86_64-apple-darwin
        - build: macos-arm64
          os: macos-latest
          os: macos-11
          rust: nightly
          target: aarch64-apple-darwin
        - build: windows-msvc
@@ -144,16 +144,6 @@ jobs:
        echo "target flag is: ${{ env.TARGET_FLAGS }}"
        echo "target dir is: ${{ env.TARGET_DIR }}"

    - name: aarch64 specific items
      if: matrix.build == 'macos-arm64'
      run: |
        # Use the beta compiler
        sudo xcode-select -s /Applications/Xcode_12.2.app/Contents/Developer/

        # Set SDK environment variables
        echo "SDKROOT=$(xcrun -sdk macosx11.0 --show-sdk-path)" >> $GITHUB_ENV
        echo "MACOSX_DEPLOYMENT_TARGET=$(xcrun -sdk macosx11.0 --show-sdk-platform-version)" >> $GITHUB_ENV

    - name: Build release binary
      run: ${{ env.CARGO }} build --verbose --release ${{ env.TARGET_FLAGS }}