Skip to content

Merge branch 'testable' of https://github.com/KsaR99/languages into t… #12

Merge branch 'testable' of https://github.com/KsaR99/languages into t…

Merge branch 'testable' of https://github.com/KsaR99/languages into t… #12

Workflow file for this run

name: Hello World
trigger-on-paths: &whiteList

Check failure on line 3 in .github/workflows/hello-world.yml

View workflow run for this annotation

GitHub Actions / Hello World

Invalid workflow file

The workflow is not valid. .github/workflows/hello-world.yml (Line: 3, Col: 1): Unexpected value 'trigger-on-paths' .github/workflows/hello-world.yml: Anchors are not currently supported. Remove the anchor 'whiteList'
- 'hello-world/**'
- 'run.sh'
- 'compile.sh'
on:
push:
branches:
- '**'
paths: *whiteList
pull_request:
branches:
- main
paths: *whiteList
jobs:
hello-world:
runs-on: macos-latest
steps:
- run: echo LOCAL ${{ env.LOCAL }}
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup LLVM
uses: ZhongRuoyu/setup-llvm@v0
with:
llvm-version: 17
- name: Setup GraalVM w/ native-image
uses: graalvm/setup-graalvm@v1
with:
java-version: '23'
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install clojure tools
uses: DeLaGuardo/setup-clojure@ac5052cad8ffe5039f26968da4b4a0ca88d00971
with:
cli: latest
bb: latest
no-auth: ${{ env.LOCAL == 'true' }}
- name: Setup Fortran
uses: fortran-lang/setup-fortran@v1
id: setup-fortran
with:
compiler: gcc
version: '13'
# - name: Setup Haskell
# uses: haskell-actions/setup@v2
# - name: Setup zig
# uses: mlugg/setup-zig@v1
- name: Setup Dart
uses: dart-lang/setup-dart@v1
- name: Set up PyPy
uses: actions/setup-python@v5
with:
python-version: 'pypy3.10'
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22.11.0'
- uses: oven-sh/setup-bun@v2
with:
bun-version: '1.1.34'
- name: Cache Homebrew
uses: actions/cache@v4
with:
path: |
/opt/Homebrew
/opt/Caskroom
key: ${{ runner.os }}-brew-${{ hashFiles('Brewfile') }}
restore-keys: |
${{ runner.os }}-brew-
- name: Brew Install hyperfine and various languages and tools
run: brew bundle --file=Brewfile
- name: Compile Hello World programs
run: |
cd hello-world
bash ../compile.sh
continue-on-error: true
- name: Run Hello World benchmarks
run: |
cd hello-world
bash ../run.sh
continue-on-error: true