Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More CI tests #33

Merged
merged 14 commits into from
Jun 20, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 0 additions & 59 deletions .github/workflows/build-compiler.yml

This file was deleted.

89 changes: 89 additions & 0 deletions .github/workflows/building-compiler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
name: Building compiler

on:
push:
branches: [ '**' ]
pull_request:
branches: [ '**' ]

jobs:
build-all:
name: 'Building'

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ windows-2019, windows-2022, ubuntu-20.04, macos-11 ]
node-version: [ 16.x ]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Run Npm
run: |
npm clean-install

- name: Build Hexa
run: |
node --trace-uncaught bootstrap.js --define debug=false hexa.json
node --trace-uncaught hexa-node.js --define debug=true --define times=false hexa.json
node --trace-uncaught hexa-node.js --define debug=false --define times=false hexa.json

- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: hexa-node.js-${{ matrix.os }}
path: hexa-node.js

test-all:
name: 'Testing'
needs: build-all

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ windows-2019, windows-2022, ubuntu-20.04, macos-11 ]
node-version: [ 16.x ]

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get Hexa
uses: actions/download-artifact@v3
with:
name: hexa-node.js-${{ matrix.os }}

- run: |
ls

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'

- name: Build tests
run: |
node --trace-uncaught hexa-node.js test/lts/hello/hexa.json
node --trace-uncaught hexa-node.js test/normalizer/hexa.json

- name: Build examples
run: |
node --trace-uncaught hexa-node.js examples/html-raytracer/hexa.json
node --trace-uncaught hexa-node.js examples/native-posix/hexa.json
node --trace-uncaught hexa-node.js examples/native-win32/hexa.json
node --trace-uncaught hexa-node.js examples/node-platform/hexa.json
Original file line number Diff line number Diff line change
@@ -1,45 +1,40 @@
name: Build tools
name: Building tools

on:
push:
branches:
# Matches every branch
- '**'
branches: [ '**' ]
pull_request:
branches:
# Targets the main branch
- kawaii
branches: [ '**' ]

jobs:
build-windows:
# Use oldest available to check build regressions
runs-on: windows-2019
build-all:
name: 'Building'

runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ windows-2019, windows-2022 ]
architecture:
- amd64

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Enable Developer Command Prompt
uses: ilammy/msvc-dev-cmd@v1
with:
arch: ${{ matrix.architecture }}
arch: ${{ matrix.architecture }}

- name: Build Library Generator
run: |
cl tools\libgen\main.cpp /Felibgen.exe /Os /INCREMENTAL:NO /nologo

- name: Prepare artifacts
run: |
mkdir out
move libgen.exe out\libgen.exe

- name: Upload Library Generator
uses: actions/upload-artifact@v3
with:
name: libgen
path: out/libgen.exe
name: libgen-${{ matrix.os }}
path: libgen.exe
Loading