use post-quantum key agreement #41
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
name: Build | |
on: | |
pull_request: | |
push: | |
branches: | |
jobs: | |
build: | |
name: Build on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macOS-latest ] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'temurin' | |
java-version: '17' | |
- name: Copy version files | |
shell: bash | |
run: | | |
cp curl/src/main/native/config/versions/nghttp2ver.h curl/src/main/native/nghttp2/lib/includes/nghttp2/nghttp2ver.h | |
cp curl/src/main/native/config/versions/nghttp3ver.h curl/src/main/native/nghttp3/lib/includes/nghttp3/version.h | |
cp curl/src/main/native/config/versions/ngtcp2ver.h curl/src/main/native/ngtcp2/lib/includes/ngtcp2/version.h | |
echo "#include \"tool_hugehelp.h\"" > curl/src/main/native/curl/src/tool_hugehelp.c | |
- name: Configuration Environment | |
shell: bash | |
run: | | |
echo 'android.sdk.channel=3' >> gradle.properties | |
echo 'android.native.buildOutput=verbose' >> gradle.properties | |
echo 'org.gradle.jvmargs=-Xmx2048m -Dfile.encoding=UTF-8' >> gradle.properties | |
echo 'org.gradle.caching=true' >> gradle.properties | |
echo 'org.gradle.parallel=true' >> gradle.properties | |
echo '84831b9409646a918e30573bab4c9c91346d8abd' > $ANDROID_SDK_ROOT/licenses/android-sdk-preview-license | |
- name: Build with Gradle | |
run: | | |
./gradlew :t:assembleRelease | |
./gradlew publishToMavenLocal | |
- name: Upload app | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os }}-app | |
path: tool/build/outputs | |
- name: Upload library | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.os }}-library | |
path: ~/.m2 |