Skip to content

Introduce concept of byte strings and byte text blocks #5794

Introduce concept of byte strings and byte text blocks

Introduce concept of byte strings and byte text blocks #5794

Workflow file for this run

name: ci
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.java }} ${{ matrix.os }}
strategy:
matrix:
java: [17, 21]
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v5
- uses: gradle/actions/wrapper-validation@v5
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v5
with:
java-version: ${{ matrix.java }}
distribution: 'corretto'
cache: gradle
- name: Clean, build, test, and javadoc
run: ./gradlew clean build javadoc -PnoFormat -Plog-tests --stacktrace
- name: Allow long file names in git for windows
if: matrix.os == 'windows-latest'
run: git config --system core.longpaths true
- name: Integration tests
if: matrix.java == 17
run: ./gradlew integ -Plog-tests --stacktrace
- uses: actions/upload-artifact@v5
if: failure()
with:
name: java-${{ matrix.java }}-${{ matrix.os }}-test-report
path: '**/build/reports/tests'
cli-distributions:
runs-on: ubuntu-latest
name: Build CLI executables
steps:
- uses: actions/checkout@v5
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'corretto'
cache: gradle
- name: Build CLI distributions
run: ./gradlew :smithy-cli:checksumImages
build-docs:
runs-on: ubuntu-latest
name: Documentation Build
steps:
- uses: actions/checkout@v5
- name: Set up Python 3.x
uses: actions/setup-python@v6
with:
python-version: '3.x'
- name: Setup Node
uses: actions/setup-node@v6
with:
node-version: latest
cache: npm
cache-dependency-path: "docs/landing-page/package-lock.json"
- name: Install doc dependencies
run: cd docs && make install
- name: Build docs
run: cd docs && make html
- uses: actions/upload-artifact@v5
with:
name: built-docs
path: docs/build/html
build-api-models-aws:
runs-on: ubuntu-latest
name: Build AWS API Models
steps:
- name: Checkout Smithy
uses: actions/checkout@v5
with:
path: 'smithy'
- name: Checkout api-models-aws
uses: actions/checkout@v5
with:
repository: aws/api-models-aws
path: api-models-aws
- uses: gradle/actions/wrapper-validation@v5
- name: Setup JDK 17
uses: actions/setup-java@v5
with:
java-version: 17
distribution: 'corretto'
cache: gradle
- name: Publish Smithy to Maven local
run: cd smithy && ./gradlew clean build pTML -PnoFormat
- name: Update Smithy version
run: |
SMITHY_VERSION=$(cat ./smithy/VERSION) \
&& sed -i "s/smithy = \"[^\"]*\"/smithy = \"$SMITHY_VERSION\"/g" ./api-models-aws/gradle/libs.versions.toml
- name: Check that the Smithy version was updated properly
run: |
SMITHY_VERSION=$(cat ./smithy/VERSION) \
&& grep "smithy = \"$SMITHY_VERSION\"" ./api-models-aws/gradle/libs.versions.toml
- name: Build AWS API Models
run: cd api-models-aws && ./gradlew clean build