mirror of
https://github.com/GayPizzaSpecifications/stable-diffusion-rpc.git
synced 2025-08-04 14:01:32 +00:00
Formatting, linting, and hopefully a CI build.
This commit is contained in:
31
.github/workflows/macos.yml
vendored
Normal file
31
.github/workflows/macos.yml
vendored
Normal file
@ -0,0 +1,31 @@
|
||||
name: macOS
|
||||
on: [push]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Build Executable
|
||||
run: swift build -c release --arch arm64 --arch x86_64
|
||||
- name: Copy Executable
|
||||
run: cp .build/apple/Products/Release/StableDiffusionServer StableDiffusionServer
|
||||
- name: Archive Executable
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: StableDiffusionServer
|
||||
path: StableDiffusionServer
|
||||
format:
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Swift Format
|
||||
run: swiftformat --lint Package.swift Sources
|
||||
lint:
|
||||
runs-on: macos-12
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v2
|
||||
- name: Swift Lint
|
||||
run: swiftlint Package.swift Sources
|
Reference in New Issue
Block a user