Skip to content

Commit

Permalink
Update GitHub workflows and Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
ofou authored Mar 29, 2024
1 parent a9ce7a4 commit 35e14f7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: macOS

on:
push:
branches: [ main ]
branches: [main]
pull_request:
branches: [ main ]
branches: [main]

workflow_dispatch:

Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ on:
pull_request:
branches: [main]

workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Testing on ubuntu-latest
- name: Run
run: |
make all
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ SHELL := /bin/bash

.SILENT: clean venv fetch merge epub pdf

# Define OS-specific package manager and virtual environment activation command
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
PKG_MANAGER := apt
VENV_ACTIVATE := . ./.venv/bin/activate
ifeq ($(UNAME_S),Darwin)
PKG_MANAGER := brew
VENV_ACTIVATE := source .venv/bin/activate
else ifeq ($(UNAME_S),Linux)
PKG_MANAGER := apt
VENV_ACTIVATE := . ./.venv/bin/activate
else
PKG_MANAGER := brew
VENV_ACTIVATE := . ./.venv/bin/activate
$(error Unsupported operating system: $(UNAME_S))
endif

all: dependencies clean venv fetch merge epub wordcount
Expand Down

0 comments on commit 35e14f7

Please sign in to comment.