Browse Source

Update workflows to newer images

pull/2493/head
Sami Vaarala 2 years ago
parent
commit
d0bcd6a796
  1. 26
      .github/workflows/build-workflow.yaml
  2. 16
      .github/workflows/dist-tag-workflow.yaml
  3. 8
      .github/workflows/dist-workflow.yaml
  4. 8
      .github/workflows/release-workflow.yaml
  5. 44
      .github/workflows/test-workflow.yaml

26
.github/workflows/build-workflow.yaml

@ -2,15 +2,19 @@ name: Build
on: [push, pull_request]
jobs:
build_duk_ubuntu:
name: Duk Ubuntu 18.04
runs-on: ubuntu-18.04
name: Duk Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git
sudo apt -qqy install build-essential make python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
make build/duk build/dukd build/duk-g++ build/duk-clang build/duk-fuzzilli
@ -20,14 +24,18 @@ jobs:
build/duk dist-files/mandel.js
build/duk-g++ dist-files/mandel.js
build_duk_macos:
name: Duk macOS 10.15
runs-on: macos-10.15
name: Duk macOS 12
runs-on: macos-12
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
python2 -m pip install PyYAML
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
make build/duk
@ -36,8 +44,8 @@ jobs:
build/duk -e "print(Duktape.env); print('Hello world!');"
build/duk dist-files/mandel.js
build_duk_windows:
name: Duk VS2019
runs-on: windows-2019
name: Duk VS2022
runs-on: windows-2022
strategy:
matrix:
architecture: [ 'x86', 'amd64' ]
@ -47,8 +55,8 @@ jobs:
- name: Build
shell: cmd
run: |
REM call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{matrix.architecture}}
REM call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat"
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" ${{matrix.architecture}}
REM cl /?
REM python2 -m pip install PyYAML
REM python2 tools\configure.py --line-directives --output-directory prep-nondll --source-directory src-input --config-metadata config

16
.github/workflows/dist-tag-workflow.yaml

@ -5,14 +5,18 @@ on:
jobs:
dist_source:
name: Source
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git
sudo apt -qqy install build-essential make python2 python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Dist source
run: |
make dist-source
@ -23,14 +27,18 @@ jobs:
path: dist/*.tar.xz
dist_site:
name: Site
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git
sudo apt -qqy install build-essential make python2 python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build Docker images
run: |
make docker-images

8
.github/workflows/dist-workflow.yaml

@ -3,14 +3,18 @@ on: [push, pull_request]
jobs:
dist_source:
name: Source
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git
sudo apt -qqy install build-essential make python2 python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Dist source
run: |
make dist-source

8
.github/workflows/release-workflow.yaml

@ -4,14 +4,18 @@ on:
jobs:
dist_source_and_site:
name: Dist source and site
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git
sudo apt -qqy install build-essential make python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build Docker images
run: |
make docker-images

44
.github/workflows/test-workflow.yaml

@ -3,46 +3,58 @@ on: [push, pull_request]
jobs:
ecmatest:
name: Ecmatest
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git nodejs
sudo apt -qqy install build-essential make python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
make build/duk
- name: Ecmatest
run: |
make ecmatest
TZ=Europe/Helsinki make ecmatest
apitest:
name: Apitest
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git nodejs
sudo apt -qqy install build-essential make python3 python3-yaml bc git
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build
run: |
make build/duk
- name: Apitest
run: |
make apitest
TZ=Europe/Helsinki make apitest
misctests:
name: Misc tests
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git nodejs valgrind
sudo apt -qqy install build-essential make python2 python3 python3-yaml bc git valgrind
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Configure test
run: |
make configuretest
@ -51,14 +63,18 @@ jobs:
make errorinjecttest
lint:
name: Lint
runs-on: ubuntu-18.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install build-essential make python python-yaml bc git tidy
sudo apt -qqy install build-essential make python2 python3 python3-yaml bc git tidy
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Codepolicycheck
run: |
CI=1 make codepolicycheck
@ -67,14 +83,18 @@ jobs:
make tidy-site
sourceformat:
name: Source format
runs-on: ubuntu-20.04
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install packages
run: |
sudo apt -qqy update
sudo apt -qqy install make python zip unzip
sudo apt -qqy install make python3 python3-yaml zip unzip
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 16
- name: Build clang-format docker image
run: |
make docker-image-clang-format

Loading…
Cancel
Save