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

Bump actions/download-artifact from 3 to 4.1.7 in /.github/workflows #39

Open
wants to merge 1 commit into
base: kawaii
Choose a base branch
from
Open
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
262 changes: 131 additions & 131 deletions .github/workflows/build-compiler.yml
Original file line number Diff line number Diff line change
@@ -1,131 +1,131 @@
name: 'Build compiler'

on:
push:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'examples/**'
- 'library/**'
- 'source/**'
- 'test/**'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'examples/**'
- 'library/**'
- 'source/**'
- 'test/**'

defaults:
run:
shell: pwsh

jobs:
build-compiler:
name: 'Building'

strategy:
matrix:
system:
- windows-2022
- ubuntu-22.04
- macos-12
node-version:
- 20.x

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

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: Build Hexa installer
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/GreenteaOS/Teapot.git ../Teapot
node tools\innoSetup\dateToVersion.js
cd tools\innoSetup
iscc.exe installHexa.iss
cd ..
cd ..

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

- name: Upload installer
if: runner.os == 'Windows'
uses: actions/upload-artifact@v3
with:
path: Hexa-*.exe
name: Hexa-INSTALLER.exe
if-no-files-found: error

test-compiler:
name: 'Testing'

needs: build-compiler

strategy:
matrix:
system:
- windows-2022
- ubuntu-22.04
- macos-12
node-version:
- 20.x

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

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.system }}-${{ github.sha }}

- 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
name: 'Build compiler'
on:
push:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'examples/**'
- 'library/**'
- 'source/**'
- 'test/**'
pull_request:
branches:
- '**'
paths:
- '.github/workflows/**'
- 'examples/**'
- 'library/**'
- 'source/**'
- 'test/**'
defaults:
run:
shell: pwsh
jobs:
build-compiler:
name: 'Building'
strategy:
matrix:
system:
- windows-2022
- ubuntu-22.04
- macos-12
node-version:
- 20.x
runs-on: ${{ matrix.system }}
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: Build Hexa installer
if: runner.os == 'Windows'
run: |
git clone --depth 1 https://github.com/GreenteaOS/Teapot.git ../Teapot
node tools\innoSetup\dateToVersion.js
cd tools\innoSetup
iscc.exe installHexa.iss
cd ..
cd ..
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: hexa-node.js-${{ matrix.system }}-${{ github.sha }}
path: hexa-node.js
- name: Upload installer
if: runner.os == 'Windows'
uses: actions/upload-artifact@v3
with:
path: Hexa-*.exe
name: Hexa-INSTALLER.exe
if-no-files-found: error
test-compiler:
name: 'Testing'
needs: build-compiler
strategy:
matrix:
system:
- windows-2022
- ubuntu-22.04
- macos-12
node-version:
- 20.x
runs-on: ${{ matrix.system }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Get Hexa
uses: actions/download-artifact@v4.1.7
with:
name: hexa-node.js-${{ matrix.system }}-${{ github.sha }}
- 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
Loading