refactor: make use of a global closure per suite in std.Testing #121
Workflow file for this run
This file contains hidden or 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
name: CI | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
ARTIFACT_NAME: "linux-clang-16.zip" | |
CLANG_VERSION: 16 | |
jobs: | |
check_ark: | |
name: ArkScript formatting check | |
runs-on: ubuntu-24.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Format check | |
uses: ArkScript-lang/action-format@master | |
with: | |
folder: . | |
exclude: tests | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout std | |
uses: actions/checkout@v4 | |
- uses: robinraju/[email protected] | |
with: | |
latest: true | |
preRelease: true | |
repository: ArkScript-lang/Ark | |
fileName: ${{ env.ARTIFACT_NAME }} | |
- name: Set up files | |
shell: bash | |
run: | | |
unzip $ARTIFACT_NAME | |
chmod u+x arkscript *.so lib/*.arkm | |
cp lib/*.arkm ./ | |
- name: Update LLVM compilers | |
shell: bash | |
run: | | |
sudo apt-get install -y clang-${CLANG_VERSION} lld-${CLANG_VERSION} \ | |
libc++-${CLANG_VERSION}-dev libc++abi-${CLANG_VERSION}-dev \ | |
clang-tools-${CLANG_VERSION} | |
- name: Tests | |
shell: bash | |
run: | | |
./arkscript --version | |
mkdir -p std && mv *.ark std/ | |
./arkscript tests/all.ark -L ./ |