Skip to content

Commit

Permalink
Workflow change
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingTil committed Mar 16, 2024
1 parent 3690a66 commit f6cd03e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 48 deletions.
64 changes: 40 additions & 24 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,8 @@
on:
workflow_run:
workflows: ["Tailwind"]
types:
- completed
on: push

name: Build and test

jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Install Trunk
run: cargo install --locked trunk
- name: Clean
run: cargo clean
- name: Download CSS artifact
uses: actions/download-artifact@v2
with:
name: tailwind-css
path: style/
- name: Build
run: trunk build --release --verbose

clippy:
runs-on: ubuntu-latest
steps:
Expand All @@ -37,4 +15,42 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Format
run: cargo fmt --all -- --check
run: cargo fmt --all -- --check

tailwind-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Node.js
uses: actions/setup-node@v1
with:
node-version: '14'
- name: Install Tailwind
run: npm install -D tailwindcss
- name: Install Dependencies
run: npm install @tailwindcss/typography @tailwindcss/forms @tailwindcss/aspect-ratio
- name: Build
run: npx tailwind -o style/main.css
- name: Upload Style Artifact
uses: actions/upload-artifact@v2
with:
name: tailwind-style
path: style/main.css

build_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Add wasm32 target
run: rustup target add wasm32-unknown-unknown
- name: Install Trunk
run: cargo install --locked trunk
- name: Clean
run: cargo clean
- name: Upload Style Artifact
uses: actions/upload-artifact@v2
with:
name: tailwind-style
path: style/main.css
- name: Build
run: trunk build --release --verbose
24 changes: 0 additions & 24 deletions .github/workflows/tailwind.yml

This file was deleted.

0 comments on commit f6cd03e

Please sign in to comment.