-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(ci) bump and sync CC version among Dockerfiles and CI workflows
Dockerfiles and CI workflow use the latest version available in the runner OS. Older versions of gcc and clang are tested in CI Large.
- Loading branch information
1 parent
f5a53a3
commit 1a0759b
Showing
6 changed files
with
143 additions
and
58 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Build tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
os: | ||
required: true | ||
type: string | ||
cc: | ||
required: true | ||
type: string | ||
ngx: | ||
required: true | ||
type: string | ||
runtime: | ||
required: true | ||
type: string | ||
wasmtime: | ||
required: true | ||
type: string | ||
wasmer: | ||
required: true | ||
type: string | ||
v8: | ||
required: true | ||
type: string | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
env: | ||
CC: ${{ inputs.cc }} | ||
NGX_WASM_RUNTIME: ${{ inputs.runtime }} | ||
|
||
jobs: | ||
build: | ||
name: 'Build' | ||
#if: ${{ false }} | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- name: 'Setup Ubuntu deps - gcc' | ||
if: ${{ !env.ACT && contains(inputs.os, 'ubuntu') && contains(inputs.cc, 'gcc') }} | ||
run: sudo apt-get update && sudo apt-get install -y ${CC} libstdc++-${CC#*-}-dev | ||
|
||
- name: 'Setup Ubuntu deps - clang' | ||
if: ${{ !env.ACT && contains(inputs.os, 'ubuntu') && contains(inputs.cc, 'clang') }} | ||
run: sudo apt-get update && sudo apt-get install -y ${CC} | ||
|
||
- name: 'Setup macOS deps' | ||
if: ${{ !env.ACT && contains(inputs.os, 'macos') }} | ||
run: brew install ninja openssh | ||
|
||
- uses: actions/checkout@v3 | ||
- name: 'Setup cache - work/ dir' | ||
uses: actions/cache@v3 | ||
if: ${{ !env.ACT }} | ||
with: | ||
path: | | ||
work/downloads | ||
work/runtimes | ||
work/openssl | ||
key: work-${{ runner.os }}-${{ inputs.cc }}-${{ inputs.ngx }}-${{ inputs.runtime }}-${{ hashFiles('util/**/*.sh', 'util/**/*.pl', 'util/**/*.awk', '.github/**/*.yml', '.github/**/*.sh', '.github/**/*.js', 'rust-toolchain', 'Makefile') }} | ||
- name: Setup Wasm runtime | ||
run: ./util/runtime.sh -R ${{ inputs.runtime }} -V ${{ inputs[inputs.runtime] }} | ||
- run: make setup | ||
- run: make test-build |
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
Oops, something went wrong.