-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
190 additions
and
114 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
name: Build and Test | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "50 8 * * 1" | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
image: | ||
- swift:5.3.2-xenial | ||
- swift:5.3.2-bionic | ||
container: ${{ matrix.image }} | ||
steps: | ||
- name: Install SQLite & PG Dev | ||
run: | | ||
apt-get update | ||
apt-get -y install libsqlite3-dev libpq-dev | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Build Swift Debug Package | ||
run: swift build -c debug | ||
- name: Build Swift Release Package | ||
run: swift build -c release | ||
nextstep: | ||
runs-on: macos-latest | ||
steps: | ||
- name: Select latest available Xcode | ||
uses: maxim-lobanov/[email protected] | ||
with: | ||
xcode-version: 12.2 | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
- name: Build Swift Debug Package | ||
run: swift build -c debug | ||
- name: Build Swift Release Package | ||
run: swift build -c release |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Makefile | ||
|
||
# local config | ||
SWIFT_BUILD=swift build | ||
SWIFT_CLEAN=swift package clean | ||
SWIFT_BUILD_DIR=.build | ||
SWIFT_TEST=swift test | ||
CONFIGURATION=debug | ||
DOCKER=/usr/local/bin/docker | ||
#DOCKER=docker | ||
|
||
# docker config | ||
SWIFT_BUILD_IMAGE="swift:5.3.1" | ||
DOCKER_BUILD_DIR=".docker$(SWIFT_BUILD_DIR)" | ||
SWIFT_DOCKER_BUILD_DIR="$(DOCKER_BUILD_DIR)/x86_64-unknown-linux/$(CONFIGURATION)" | ||
DOCKER_BUILD_PRODUCT="$(DOCKER_BUILD_DIR)/$(TOOL_NAME)" | ||
|
||
|
||
SWIFT_SOURCES=\ | ||
Sources/*/*/*.swift \ | ||
Sources/*/*/*/*.swift | ||
|
||
all: all-native | ||
|
||
#all: docker-all | ||
|
||
all-native: | ||
$(SWIFT_BUILD) -c $(CONFIGURATION) | ||
|
||
# Cannot test in `release` configuration?! | ||
test: | ||
$(SWIFT_TEST) | ||
|
||
clean : | ||
$(SWIFT_CLEAN) | ||
# We have a different definition of "clean", might be just German | ||
# pickyness. | ||
rm -rf $(SWIFT_BUILD_DIR) | ||
|
||
$(DOCKER_BUILD_PRODUCT): $(SWIFT_SOURCES) | ||
$(DOCKER) run --rm \ | ||
-v "$(PWD):/src" \ | ||
-v "$(PWD)/$(DOCKER_BUILD_DIR):/src/.build" \ | ||
"$(SWIFT_BUILD_IMAGE)" \ | ||
bash -c 'cd /src && swift build -c $(CONFIGURATION)' | ||
|
||
docker-all: $(DOCKER_BUILD_PRODUCT) | ||
|
||
docker-test: docker-all | ||
$(DOCKER) run --rm \ | ||
-v "$(PWD):/src" \ | ||
-v "$(PWD)/$(DOCKER_BUILD_DIR):/src/.build" \ | ||
"$(SWIFT_BUILD_IMAGE)" \ | ||
bash -c 'cd /src && swift test -c $(CONFIGURATION)' | ||
|
||
docker-clean: | ||
rm $(DOCKER_BUILD_PRODUCT) | ||
|
||
docker-distclean: | ||
rm -rf $(DOCKER_BUILD_DIR) | ||
|
||
distclean: clean docker-distclean | ||
|
||
docker-emacs: | ||
$(DOCKER) run --rm -it \ | ||
-v "$(PWD):/src" \ | ||
-v "$(PWD)/$(DOCKER_BUILD_DIR):/src/.build" \ | ||
"$(SWIFT_BUILD_IMAGE)" \ | ||
emacs /src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
ZeeQL3PG.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>IDEDidComputeMac32BitWarning</key> | ||
<true/> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.