Skip to content

Commit

Permalink
Merge pull request #33 from acidicMercury8/more-ci-tests
Browse files Browse the repository at this point in the history
More CI tests
  • Loading branch information
PeyTy authored Jun 20, 2022
2 parents 0a495e0 + f7ad1fd commit 96d6ea0
Show file tree
Hide file tree
Showing 6 changed files with 123 additions and 3,762 deletions.
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

0 comments on commit 96d6ea0

Please sign in to comment.