From 5d887bd70e38431cbd7587796a3307925c83e62d Mon Sep 17 00:00:00 2001 From: Josh Elkins Date: Mon, 3 Jul 2023 12:56:24 -0500 Subject: [PATCH] chore: Delete release workflow --- .github/workflows/release.yml | 77 ----------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 522da462425..00000000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,77 +0,0 @@ -name: Release - -on: - pull_request: - workflow_dispatch: - -env: - BUILDER_VERSION: v0.8.19 - BUILDER_SOURCE: releases - # host owned by CRT team to host aws-crt-builder releases. Contact their on-call with any issues - BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net - PACKAGE_NAME: aws-sdk-swift - LINUX_BASE_IMAGE: ubuntu-16-x64 - RUN: ${{ github.run_id }}-${{ github.run_number }} - -# This release script is work in progress. We will need to update the script to -# * Ensure that unit tests pass for all targets prior to generating a release -# * Create release based on one of the platform's built results -# * Add Readme.md file in release folder -# * Pin to versions of aws-crt-swift and smithy-swift -# - -jobs: - macos-release: - if: startsWith(github.head_ref, 'release/') - runs-on: macos-13 - env: - DEVELOPER_DIR: /Applications/Xcode_14.3.app/Contents/Developer - steps: - - name: Checkout sources - uses: actions/checkout@v2 - - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: | - ${{ runner.os }}-gradle- - - uses: actions/setup-java@v1 - with: - java-version: '11' - - name: Tools Versions - run: | - which swiftc - swiftc --version - echo - which xcodebuild - xcodebuild -version - - name: Build and Test ${{ env.PACKAGE_NAME }} - env: - AWS_SDK_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift - AWS_CRT_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift/target/build/deps/aws-crt-swift - SMITHY_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift/target/build/deps/smithy-swift - run: | - python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" - chmod a+x builder.pyz - ./builder.pyz build -p ${{ env.PACKAGE_NAME }} - ./gradlew -p codegen/sdk-codegen build - ./gradlew -p codegen/sdk-codegen stageSdks - ./gradlew --stop - ./scripts/mergeModels.sh Sources/Services - - name: Generate SDK and Swift package manifest - run: | - cd AWSSDKSwiftCLI - swift run AWSSDKSwiftCLI generate-package-manifest ../ - cd .. - cat Package.swift - swift build --build-tests - swift test --skip-build - - name: Commit Changes - uses: EndBug/add-and-commit@v7 - with: - author_name: AWS CI - author_email: nobody@amazonaws.com - message: 'aws-sdk-swift release build artifacts' - add: '["Sources/Services/*", "Tests/Services/*", "Package.swift"]'