File size: 1,121 Bytes
cc4fc0a
a40ade2
 
 
 
fe8f5de
6f369b8
a40ade2
fe8f5de
6f369b8
a40ade2
 
 
 
 
 
3481ec4
a40ade2
 
 
 
 
 
7ebd0cd
 
 
 
89e5895
6f369b8
 
 
 
 
 
 
 
 
 
 
 
 
89e5895
6f369b8
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
name: Rust

on:
  push:
    branches:
      - '**'
  pull_request:
    branches:
      - 'rolling'

env:
  CARGO_TERM_COLOR: always

jobs:
  build:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        toolchain:
          - stable

    steps:
      - name: Install LuaJIT and Lua
        run: |
          sudo apt-get update
          sudo apt-get install -y --no-install-recommends liblua5.4-dev liblua5.3-dev liblua5.2-dev liblua5.1-0-dev libluajit-5.1-dev
      - uses: actions/checkout@v4
      - run: rustup toolchain install stable --profile minimal
      - uses: Swatinem/rust-cache@v2
        with:
          prefix-key: ''
          shared-key: ''
          key: ''
          env-vars: ''
          workspaces: ''
          cache-directories: ''
          cache-targets: ''
          cache-on-failure: ''
          cache-all-crates: ''
          save-if: ''
      - uses: actions/checkout@v4
      - run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
      - name: Build
        run: cargo build --verbose
      - name: Run tests
        run: cargo test --verbose