Skip to content
This repository was archived by the owner on Dec 24, 2025. It is now read-only.

Commit fd72663

Browse files
author
khcrysalis
committed
chore: Setup nightly workflows
1 parent 6862051 commit fd72663

3 files changed

Lines changed: 75 additions & 0 deletions

File tree

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,6 @@ charset = utf-8
88
trim_trailing_whitespace = false
99
insert_final_newline = true
1010

11+
[*.{yml,yaml}]
12+
indent_style = space
13+
indent_size = 2

.github/workflows/nightly.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Nightly CI
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
nightly:
11+
runs-on: macos-15
12+
steps:
13+
- name: Checkout code
14+
uses: actions/checkout@v2
15+
16+
- name: Select Xcode 16.2
17+
run: sudo xcode-select -s /Applications/Xcode_16.2.app/Contents/Developer
18+
19+
- name: Build Artifacts
20+
run: make
21+
22+
- name: Release Nightly
23+
uses: andelf/nightly-release@v1
24+
env:
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
with:
27+
body: |
28+
> [!NOTE]
29+
> Auto-updating is not yet implemented! Will be in a future release, for now you will need to update manually.
30+
31+
**Commit:** [${{ github.sha }}](https://github.com/${{ github.repository }}/commit/${{ github.sha }})
32+
**Message:** ${{ github.event.head_commit.message }}
33+
34+
This is a nightly release [created automatically with GitHub Actions workflow](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/attempts/${{ github.run_attempt }}).
35+
files: packages/Copyboard.zip

Makefile

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
NAME := Copyboard
2+
PLATFORM := macosx
3+
SCHEMES := Copyboard
4+
TMP := $(TMPDIR)/$(NAME)
5+
STAGE := $(TMP)/stage
6+
APP := $(TMP)/Build/Products/Release
7+
8+
.PHONY: all clean $(SCHEMES)
9+
10+
all: $(SCHEMES)
11+
12+
$(SCHEMES):
13+
xcodebuild \
14+
-project $(NAME).xcodeproj \
15+
-scheme "$@" \
16+
-configuration Release \
17+
-sdk $(PLATFORM) \
18+
-arch arm64 \
19+
-arch x86_64 \
20+
-derivedDataPath $(TMP) \
21+
-skipPackagePluginValidation \
22+
CODE_SIGNING_ALLOWED=NO \
23+
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES=NO \
24+
ONLY_ACTIVE_ARCH=NO
25+
26+
@rm -rf packages
27+
@rm -rf $(STAGE)
28+
@mkdir -p $(STAGE)
29+
@mv $(APP)/$@.app $(STAGE)
30+
31+
@mkdir -p packages
32+
@cp -R $(STAGE)/$@.app packages/
33+
@zip -r packages/$(NAME).zip packages/$@.app
34+
35+
clean:
36+
@rm -rf packages
37+
@rm -rf $(TMP)

0 commit comments

Comments
 (0)