-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #33 from acidicMercury8/more-ci-tests
More CI tests
- Loading branch information
Showing
6 changed files
with
123 additions
and
3,762 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,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 |
31 changes: 13 additions & 18 deletions
31
.github/workflows/build-tools.yml → .github/workflows/building-tools.yml
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 |
---|---|---|
@@ -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 |
Oops, something went wrong.