-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Build AWS SDK C++ for Windows, Linux, and MacOS | ||
|
||
on: | ||
pull_request: # TODO (aliddell): replace with workflow_dispatch | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build aws-sdk-cpp ${{ matrix.build_type }} on ${{ matrix.platform }} | ||
runs-on: ${{ matrix.platform }} | ||
timeout-minutes: 10 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
platform: | ||
- windows-latest | ||
- ubuntu-latest | ||
- macos-latest | ||
build_type: | ||
- Debug | ||
- Release | ||
- RelWithDebInfo | ||
permissions: | ||
actions: write | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Install Dependencies | ||
if: matrix.platform == 'ubuntu-latest' | ||
run: sudo apt-get update && sudo apt-get install libcurl4-openssl-dev | ||
|
||
- name: Clone | ||
run: git clone --recursive https://github.com/aws/aws-sdk-cpp.git --branch 1.11.328 | ||
working-directory: ${{github.workspace}}/.. | ||
|
||
- name: Checkout submodules | ||
run: git submodule update --init --recursive | ||
working-directory: ${{github.workspace}}/../aws-sdk-cpp | ||
|
||
- name: Configure | ||
run: cmake -B ${{github.workspace}}/../build . -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DCMAKE_INSTALL_PREFIX=${{github.workspace}}/install -DBUILD_ONLY="s3" -DENABLE_TESTING=OFF | ||
working-directory: ${{github.workspace}}/../aws-sdk-cpp | ||
|
||
- name: Build | ||
run: cmake --build ${{github.workspace}}/../build --config ${{matrix.build_type}} | ||
|
||
- name: Install | ||
run: cmake --install ${{github.workspace}}/../build --config ${{matrix.build_type}} | ||
|
||
- name: Upload | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: aws-sdk-cpp-${{matrix.build_type}}-${{matrix.platform}} | ||
path: ${{github.workspace}}/install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule aws-sdk-cpp
deleted from
529117
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters