Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 10 additions & 43 deletions .github/workflows/build_latest.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
name: Build Latest

on:
push:
branches: ["main"]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- "parser/**"
- "site/**"
- "pad/**"
- "tests*/**"
- "changelog.md"
- "readme.md"
- ".github/workflows/build_latest.yml"

workflow_run:
workflows:
- Validate
types:
- completed
branches:
- main
env:
CARGO_TERM_COLOR: always

Expand All @@ -26,35 +19,9 @@ concurrency:
cancel-in-progress: true

jobs:
# Test the interpreter
test_bin:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: target
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
build-${{ runner.os }}-
- name: Run interpreter tests
run: cargo test --lib
# Test the site
test_site:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: target
key: build-${{ runner.os }}-${{ hashFiles('Cargo.lock') }}
restore-keys: |
build-${{ runner.os }}-
- name: Run site tests
run: cargo test -p site
# Build the site
build_site:
needs: test_site
if: ${{ github.event.workflow_run.conclusion == "success" }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -94,7 +61,7 @@ jobs:
# Create the release without assets
create_release:
name: Create release
needs: [test_bin, build_site]
needs: [build_site]
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -114,7 +81,7 @@ jobs:
# Create the binaries and upload them as release assets
create_binaries:
name: Create binary
needs: [test_bin, create_release]
needs: [create_release]
runs-on: ${{ matrix.os }}
env:
BINARY_EXT: ${{ matrix.os == 'windows-latest' && '.exe' || '' }}
Expand Down
31 changes: 5 additions & 26 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,10 @@
name: Validate

on:
push:
branches: ["main"]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- "parser/**"
- "site/**"
- "pad/**"
- "tests*/**"
- "changelog.md"
- "readme.md"
- ".github/workflows/validate.yml"
pull_request:
branches: ["main"]
paths:
- "Cargo.toml"
- "Cargo.lock"
- "src/**"
- "parser/**"
- "site/**"
- "pad/**"
- "tests*/**"
- "changelog.md"
- "readme.md"
- ".github/workflows/validate.yml"

push:
branches-ignore:
- site
env:
CARGO_TERM_COLOR: always

Expand All @@ -51,3 +28,5 @@ jobs:
run: rustup target add wasm32-unknown-unknown
- name: Check feature combinations
run: cargo run ./.github/features.ua
- name: Run tests
run: cargo test --workspace --no-fail-fast --all-targets --all-features
Loading