Skip to content

Commit

Permalink
Run basic test run before using expensive runners (aws#1270)
Browse files Browse the repository at this point in the history
  • Loading branch information
samuel40791765 authored Nov 1, 2023
1 parent 6b32360 commit 78249a6
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 60 deletions.
68 changes: 65 additions & 3 deletions .github/workflows/windows.yml → .github/workflows/actions-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Windows Tests
name: AWS-LC CI Tests
on:
pull_request:
branches: [ '*' ]
Expand All @@ -11,9 +11,68 @@ env:
GOPROXY: https://proxy.golang.org,direct
SDE_MIRROR_URL: "https://downloadmirror.intel.com/777395/sde-external-9.21.1-2023-04-24-win.tar.xz"
SDE_VERSION_TAG: sde-external-9.21.1-2023-04-24-win
PACKAGE_NAME: aws-lc
# Used to enable ASAN test dimension.
AWSLC_NO_ASM_FIPS: 1

jobs:
# MacOS and Windows GHA runners are more expensive, so we do a sanity test run before proceeding.
sanity-test-run:
runs-on: ubuntu-latest
steps:
- name: Git clone the repository
uses: actions/checkout@v3
- name: Sanity Test Run
run: |
sudo apt-get install ninja-build
cmake -GNinja -Btest_build_dir
ninja -C test_build_dir run_tests
macOS-x86:
needs: [sanity-test-run]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build ${{ env.PACKAGE_NAME }}
run: |
./tests/ci/run_posix_tests.sh
macOS-x86-FIPS:
needs: [sanity-test-run]
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Build ${{ env.PACKAGE_NAME }} with FIPS mode
run: |
./tests/ci/run_fips_tests.sh
macOS-ARM:
needs: [sanity-test-run]
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install ninja golang
- name: Build ${{ env.PACKAGE_NAME }}
run: |
./tests/ci/run_posix_tests.sh
macOS-ARM-FIPS:
needs: [sanity-test-run]
runs-on: macos-latest-xlarge
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew install ninja golang
- name: Build ${{ env.PACKAGE_NAME }} with FIPS mode
run: |
./tests/ci/run_fips_tests.sh
MSVC-2019:
needs: [sanity-test-run]
runs-on: temporary-performance-testing_windows-2019_8-core
steps:
- name: Git clone the repository
Expand All @@ -27,6 +86,7 @@ jobs:
.\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64
MSVC-2022:
needs: [sanity-test-run]
runs-on: temporary-performance-testing_windows-latest_8-core
steps:
- name: Git clone the repository
Expand All @@ -39,7 +99,8 @@ jobs:
run: |
.\tests\ci\run_windows_tests.bat "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x64
SDE-64-bit:
MSVC-SDE-64-bit:
needs: [sanity-test-run]
# TODO: Update this to run on windows-2022. windows-2022 (Windows 11) has phased out support for older processors.
# https://learn.microsoft.com/en-us/windows-hardware/design/minimum/supported/windows-11-supported-intel-processors
runs-on: temporary-performance-testing_windows-2019_64-core
Expand Down Expand Up @@ -67,7 +128,8 @@ jobs:
echo ${env:SDEROOT}
.\tests\ci\run_windows_tests.bat "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" x64 true
SDE-32-bit:
MSVC-SDE-32-bit:
needs: [sanity-test-run]
runs-on: temporary-performance-testing_windows-2019_64-core
steps:
- name: Git clone the repository
Expand Down
57 changes: 0 additions & 57 deletions .github/workflows/osx.yml

This file was deleted.

0 comments on commit 78249a6

Please sign in to comment.