ci: adding ArkScript formatting check #115
Workflow file for this run
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
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 | |
strategy: | |
fail-fast: false | |
matrix: | |
path: | |
- /src/ | |
container: | |
image: arkscript/nightly | |
volumes: | |
- ${{ github.workspace }}:/src | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Format check | |
uses: ArkScript-lang/Ark/.github/workflows/format-check-arkscript@dev | |
with: | |
folder: ${{ matrix.path }} | |
build: | |
runs-on: ubuntu-24.04 | |
steps: | |
- name: Checkout std | |
uses: actions/checkout@v4 | |
- uses: robinraju/release-downloader@v1.9 | |
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 ./ |