Skip to content

Add Ubuntu support (closes #226) #315

Add Ubuntu support (closes #226)

Add Ubuntu support (closes #226) #315

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
build-and-test-windows:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true
- name: Run code formatter and commit changes
run: |
# Run project formatter
.\format.ps1
# Configure Git for automated commits
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
$changes = git status --porcelain
if ($changes) {
git add -A
git commit -m "chore: format and lint with Clang."
git push
} else {
Write-Host "No changes to commit"
}
- name: Build interpreter and extensions
run: .\build.ps1
- name: Run tests
run: .\tests\test.ps1
build-and-test-ubuntu:
runs-on: ubuntu-22.04
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y clang lld powershell
- name: Build interpreter and extensions
shell: pwsh
run: ./build.ps1
- name: Run tests
shell: pwsh
run: ./tests/test.ps1