Skip to content

Changes on workflows to include all lua versions, rockspect tiny change #27

Changes on workflows to include all lua versions, rockspect tiny change

Changes on workflows to include all lua versions, rockspect tiny change #27

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.1"
- name: Build
run: cargo build --verbose --features "lua51"
- name: Run Rust tests
run: cargo test --verbose --features "lua51"
- name: Create Symbolic Link
run: ln -s $GITHUB_WORKSPACE/target/lua51/libtypst.so $GITHUB_WORKSPACE/tests/typst.so
- name: Check symbolic link
run: ls -l $GITHUB_WORKSPACE/tests
- name: Run Lua tests
run: |
lua -v
cd tests
ls -l
lua test.lua
build:

Check failure on line 40 in .github/workflows/rust.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/rust.yml

Invalid workflow file

You have an error in your yaml syntax on line 40
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.2"
- name: Build
run: cargo build --verbose --features "lua52"
- name: Run Rust tests
run: cargo test --verbose --features "lua52"
- name: Create Symbolic Link
run: ln -s $GITHUB_WORKSPACE/target/lua52/libtypst.so $GITHUB_WORKSPACE/tests/typst.so
- name: Check symbolic link
run: ls -l $GITHUB_WORKSPACE/tests
- name: Run Lua tests
run: |
lua -v
cd tests
ls -l
lua test.lua
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.3"
- name: Build
run: cargo build --verbose --features "lua53"
- name: Run Rust tests
run: cargo test --verbose --features "lua53"
- name: Create Symbolic Link
run: ln -s $GITHUB_WORKSPACE/target/lua53/libtypst.so $GITHUB_WORKSPACE/tests/typst.so
- name: Check symbolic link
run: ls -l $GITHUB_WORKSPACE/tests
- name: Run Lua tests
run: |
lua -v
cd tests
ls -l
lua test.lua
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: 1.70.0
override: true
- name: Setup Lua
uses: leafo/gh-actions-lua@v10
with:
luaVersion: "5.4"
- name: Build
run: cargo build --verbose --features "lua54"
- name: Run Rust tests
run: cargo test --verbose --features "lua54"
- name: Create Symbolic Link
run: ln -s $GITHUB_WORKSPACE/target/lua54/libtypst.so $GITHUB_WORKSPACE/tests/typst.so
- name: Check symbolic link
run: ls -l $GITHUB_WORKSPACE/tests
- name: Run Lua tests
run: |
lua -v
cd tests
ls -l
lua test.lua