-
Notifications
You must be signed in to change notification settings - Fork 54
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
1 parent
e5c9b16
commit ce04ab0
Showing
5 changed files
with
96 additions
and
22 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 |
---|---|---|
|
@@ -6,19 +6,19 @@ on: | |
- 'main' | ||
|
||
env: | ||
BUILDER_VERSION: v0.9.63 | ||
BUILDER_VERSION: v0.9.66 | ||
BUILDER_SOURCE: releases | ||
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | ||
PACKAGE_NAME: aws-checksums | ||
LINUX_BASE_IMAGE: ubuntu-18-x64 | ||
LINUX_BASE_IMAGE: ubuntu-22-x64 | ||
RUN: ${{ github.run_id }}-${{ github.run_number }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: us-east-1 | ||
|
||
jobs: | ||
linux-compat: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -38,8 +38,9 @@ jobs: | |
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} | ||
linux-compiler-compat: | ||
runs-on: ubuntu-22.04 # latest | ||
linux-compiler-compat-old-compilers: | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
matrix: | ||
compiler: | ||
|
@@ -49,11 +50,33 @@ jobs: | |
- clang-9 | ||
- clang-10 | ||
- clang-11 | ||
- clang-12 | ||
- gcc-4.8 | ||
- gcc-5 | ||
- gcc-6 | ||
- gcc-7 | ||
- gcc-8 | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-ubuntu-18-x64 build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }} | ||
linux-compiler-compat: | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
matrix: | ||
compiler: | ||
- clang-13 | ||
- clang-14 | ||
- clang-15 | ||
- clang-16 | ||
- clang-17 | ||
- clang-18 | ||
- gcc-11 | ||
- gcc-12 | ||
- gcc-13 | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
|
@@ -62,7 +85,7 @@ jobs: | |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=${{ matrix.compiler }} | ||
clang-sanitizers: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
matrix: | ||
sanitizers: [",thread", ",address,undefined"] | ||
|
@@ -71,10 +94,10 @@ jobs: | |
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}" | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-16 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}" | ||
linux-shared-libs: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
|
@@ -83,7 +106,7 @@ jobs: | |
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --cmake-extra=-DBUILD_SHARED_LIBS=ON | ||
linux-no-cpu-extensions: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
|
@@ -178,7 +201,7 @@ jobs: | |
cross_compile: | ||
name: Cross Compile ${{matrix.arch}} | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
matrix: | ||
arch: [linux-armv6, linux-armv7, linux-arm64, android-armv7] | ||
|
@@ -193,10 +216,56 @@ jobs: | |
# Test downstream repos. | ||
# This should not be required because we can run into a chicken and egg problem if there is a change that needs some fix in a downstream repo. | ||
downstream: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }} | ||
freebsd: | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
id: test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
architecture: x86-64 | ||
version: '14.0' | ||
cpu_count: 4 | ||
shell: bash | ||
run: | | ||
sudo pkg install -y python3 net/py-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} | ||
openbsd: | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
# OpenBSD only supports the two most recent releases | ||
version: ['7.4', '7.5'] | ||
steps: | ||
# Cannot use builder to checkout as OpenBSD doesn't ship git in the base install | ||
- uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: openbsd | ||
architecture: x86-64 | ||
version: ${{ matrix.version }} | ||
cpu_count: 4 | ||
shell: bash | ||
environment_variables: AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY AWS_DEFAULT_REGION AWS_REGION | ||
run: | | ||
sudo pkg_add awscli py3-pip py3-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} |
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
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
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
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