Skip to content

Commit

Permalink
batch impl init
Browse files Browse the repository at this point in the history
  • Loading branch information
OldLiu001 committed Apr 7, 2024
1 parent 96cda20 commit b56ec95
Show file tree
Hide file tree
Showing 2,433 changed files with 365,388 additions and 361,795 deletions.
192 changes: 96 additions & 96 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,96 +1,96 @@
name: Build and Test

on:
push: {}
pull_request: {}
workflow_dispatch:
inputs:
impls:
description: 'Space separated list of impls to test (or all)'
required: true
default: 'all'

jobs:
get-matrix:
runs-on: ubuntu-20.04
outputs:
do-linux: ${{ steps.get-matrix-step.outputs.do-linux }}
matrix-linux: ${{ steps.get-matrix-step.outputs.linux }}
do-macos: ${{ steps.get-matrix-step.outputs.do-macos }}
matrix-macos: ${{ steps.get-matrix-step.outputs.macos }}
steps:
- uses: actions/checkout@v2
- id: files
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: kanaka/get-changed-files@v1
- id: get-matrix-step
run: |
export OVERRIDE_IMPLS="${{ github.event.inputs.impls }}" # "
echo "OVERRIDE_IMPLS: ${OVERRIDE_IMPLS}"
./get-ci-matrix.py ${{ steps.files.outputs.all }}
linux:
needs: get-matrix
if: ${{ needs.get-matrix.outputs.do-linux == 'true' }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix-linux) }}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export ${{ matrix.IMPL }}
./ci.sh build ${IMPL}
- name: Step Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh test ${IMPL}
- name: Regression Tests
run: |
export ${{ matrix.IMPL }}
STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- name: Performance Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug
macos:
needs: get-matrix
if: ${{ needs.get-matrix.outputs.do-macos == 'true' }}
runs-on: macos-10.15
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix-macos) }}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export ${{ matrix.IMPL }}
./ci.sh build ${IMPL}
- name: Step Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh test ${IMPL}
- name: Regression Tests
run: |
export ${{ matrix.IMPL }}
STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- name: Performance Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug
name: Build and Test

on:
push: {}
pull_request: {}
workflow_dispatch:
inputs:
impls:
description: 'Space separated list of impls to test (or all)'
required: true
default: 'all'

jobs:
get-matrix:
runs-on: ubuntu-20.04
outputs:
do-linux: ${{ steps.get-matrix-step.outputs.do-linux }}
matrix-linux: ${{ steps.get-matrix-step.outputs.linux }}
do-macos: ${{ steps.get-matrix-step.outputs.do-macos }}
matrix-macos: ${{ steps.get-matrix-step.outputs.macos }}
steps:
- uses: actions/checkout@v2
- id: files
if: ${{ github.event_name != 'workflow_dispatch' }}
uses: kanaka/get-changed-files@v1
- id: get-matrix-step
run: |
export OVERRIDE_IMPLS="${{ github.event.inputs.impls }}" # "
echo "OVERRIDE_IMPLS: ${OVERRIDE_IMPLS}"
./get-ci-matrix.py ${{ steps.files.outputs.all }}
linux:
needs: get-matrix
if: ${{ needs.get-matrix.outputs.do-linux == 'true' }}
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix-linux) }}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export ${{ matrix.IMPL }}
./ci.sh build ${IMPL}
- name: Step Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh test ${IMPL}
- name: Regression Tests
run: |
export ${{ matrix.IMPL }}
STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- name: Performance Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug
macos:
needs: get-matrix
if: ${{ needs.get-matrix.outputs.do-macos == 'true' }}
runs-on: macos-10.15
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.get-matrix.outputs.matrix-macos) }}
steps:
- uses: actions/checkout@v2
- name: Build
run: |
export ${{ matrix.IMPL }}
./ci.sh build ${IMPL}
- name: Step Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh test ${IMPL}
- name: Regression Tests
run: |
export ${{ matrix.IMPL }}
STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- name: Performance Tests
run: |
export ${{ matrix.IMPL }}
./ci.sh perf ${IMPL}
- name: Archive logs and debug output
uses: actions/upload-artifact@v2
with:
name: logs
path: |
*.log
*.debug
48 changes: 24 additions & 24 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
.DS_Store
.bash_history
.cache
.cargo
.config
.mal-history
.mal_history
.crystal
.lein
.m2
.ivy2
.sbt
.npm
.node-gyp
package-lock.json
*/experiments
node_modules
*/notes
GPATH
GTAGS
GRTAGS
logs
old
tmp/
.DS_Store
.bash_history
.cache
.cargo
.config
.mal-history
.mal_history
.crystal
.lein
.m2
.ivy2
.sbt
.npm
.node-gyp
package-lock.json
*/experiments
node_modules
*/notes
GPATH
GTAGS
GRTAGS
logs
old
tmp/
38 changes: 19 additions & 19 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
sudo: required

# matrix layout based on:
# https://github.com/libressl-portable/portable/blob/9e090286b55def5ca2c0cc375c65023a70d8796e/.travis.yml

matrix:
include:
- {env: IMPL=objc NO_DOCKER=1, os: osx, osx_image: xcode7}
- {env: IMPL=swift NO_DOCKER=1, os: osx, osx_image: xcode7.3}
- {env: IMPL=swift3 NO_DOCKER=1, os: osx, osx_image: xcode8}
- {env: IMPL=swift4 NO_DOCKER=1, os: osx, osx_image: xcode10}
- {env: IMPL=swift5 NO_DOCKER=1, os: osx, osx_image: xcode11}

script:
# Build, test, perf
- ./ci.sh build ${IMPL}
- ./ci.sh test ${IMPL}
- STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- ./ci.sh perf ${IMPL}
sudo: required

# matrix layout based on:
# https://github.com/libressl-portable/portable/blob/9e090286b55def5ca2c0cc375c65023a70d8796e/.travis.yml

matrix:
include:
- {env: IMPL=objc NO_DOCKER=1, os: osx, osx_image: xcode7}
- {env: IMPL=swift NO_DOCKER=1, os: osx, osx_image: xcode7.3}
- {env: IMPL=swift3 NO_DOCKER=1, os: osx, osx_image: xcode8}
- {env: IMPL=swift4 NO_DOCKER=1, os: osx, osx_image: xcode10}
- {env: IMPL=swift5 NO_DOCKER=1, os: osx, osx_image: xcode11}

script:
# Build, test, perf
- ./ci.sh build ${IMPL}
- ./ci.sh test ${IMPL}
- STEP=stepA REGRESS=1 HARD=1 OPTIONAL=0 ./ci.sh test ${IMPL}
- ./ci.sh perf ${IMPL}
Loading

0 comments on commit b56ec95

Please sign in to comment.