Skip to content

fix(workflows): Fix release and test workflows #10

fix(workflows): Fix release and test workflows

fix(workflows): Fix release and test workflows #10

Workflow file for this run

name: Test
on:
workflow_call:
secrets:
GITHUB_TOKEN:

Check failure on line 6 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/test.yml

Invalid workflow file

secret name `GITHUB_TOKEN` within `workflow_call` can not be used since it would collide with system reserved name
required: true
outputs:
artifact:
description: "Artifact output"
value: ${{ jobs.build.outputs.artifact }}
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v3
- name: Cache Choco packages
uses: actions/cache@v3
with:
path: ~\AppData\Local\Temp\chocolatey
key: ${{ runner.os }}-choco-${{ hashFiles('**/*.yml') }}
restore-keys: |
${{ runner.os }}-choco-
- name: Install dependencies
run: |
choco install llvm
choco install make
choco install cmake --installargs 'ADD_CMAKE_TO_PATH=System'
- name: Configure
run: |
$env:CC="clang"
$env:CXX="clang++"
mkdir build
cd build
cmake -G "Unix Makefiles" ..
- name: Build
run: |
cd build
make
- name: Test
run: |
cd build
./tests.exe
outputs:
artifact: ./build/