Skip to content

Commit

Permalink
up
Browse files Browse the repository at this point in the history
  • Loading branch information
jaytaph committed Jan 6, 2025
1 parent f789080 commit 0e493d5
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 12 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/linux.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build and Run Rust Application (Linux)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-run:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install dependencies
run: |
apt install freetype2 -y
cargo fetch
- name: Build the application
run: |
cargo build --release
- name: Run the application
run: |
./target/release/fontmanager
shell: bash
15 changes: 3 additions & 12 deletions .github/workflows/ci.yaml → .github/workflows/macos.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build and Run Rust Application
name: Build and Run Rust Application (MacOS)

on:
push:
Expand All @@ -10,11 +10,7 @@ on:

jobs:
build-and-run:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]

runs-on: ${{ matrix.os }}
runs-on: macos-latest

steps:
- name: Checkout repository
Expand All @@ -28,6 +24,7 @@ jobs:

- name: Install dependencies
run: |
apt install freetype2
cargo fetch
- name: Build the application
Expand All @@ -39,9 +36,3 @@ jobs:
./target/release/fontmanager
shell: bash
if: ${{ matrix.os != 'windows-latest' }}

- name: Run the application (Windows)
run: |
.\target\release\fontmanager.exe
shell: cmd
if: ${{ matrix.os == 'windows-latest' }}
36 changes: 36 additions & 0 deletions .github/workflows/windows.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build and Run Rust Application (Windows)

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-run:
runs-on: windows-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install dependencies
run: |
cargo fetch
- name: Build the application
run: |
cargo build --release
- name: Run the application (Windows)
run: |
.\target\release\fontmanager.exe
shell: cmd

0 comments on commit 0e493d5

Please sign in to comment.