glsl-lexer/.forgejo/workflows/uwu.yaml

31 lines
605 B
YAML
Raw Normal View History

2024-07-11 14:51:10 +02:00
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
2024-07-11 14:02:10 +02:00
jobs:
2024-07-11 14:51:10 +02:00
build:
2024-07-11 14:02:10 +02:00
runs-on: ubuntu-latest
2024-07-11 14:51:10 +02:00
2024-07-11 14:02:10 +02:00
steps:
2024-07-11 14:51:10 +02:00
- uses: actions/checkout@v4
2024-07-11 14:56:16 +02:00
- name: Install toolchain
2024-07-11 14:53:31 +02:00
run: |
apt update
2024-07-11 14:56:16 +02:00
apt install --yes curl
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain nightly --profile default -y
2024-07-11 14:51:10 +02:00
- name: Build
2024-07-11 14:58:05 +02:00
run: |
$HOME/.cargo/env
cargo build --verbose
2024-07-11 14:51:10 +02:00
- name: Run tests
2024-07-11 14:58:05 +02:00
run: |
$HOME/.cargo/env
cargo test --verbose
2024-07-11 14:51:10 +02:00