This repository has been archived by the owner on May 6, 2024. It is now read-only.
-
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
7 changed files
with
164 additions
and
109 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,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,36 @@ | ||
# This workflow will build a Swift project | ||
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift | ||
|
||
name: test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
branches: ["master"] | ||
pull_request: | ||
branches: [master] | ||
branches: ["master"] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Swift | ||
uses: swift-actions/setup-swift@v1 | ||
|
||
# src: https://harry.garrood.me/blog/easy-incremental-haskell-ci-builds-with-ghc-9.4/ | ||
- name: Cache build | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
.build | ||
key: build-${{ runner.os }}-${{ hashFiles('Package.swift') }}-${{ hashFiles('Package.resolved') }} | ||
restore-keys: | | ||
build-${{ runner.os }}-${{ hashFiles('Package.swift') }} | ||
- name: Build | ||
run: swift build -v | ||
|
||
- name: Run tests | ||
run: swift test -Xswiftc -DFULL | ||
run: swift test -v |
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 |
---|---|---|
|
@@ -89,3 +89,6 @@ fastlane/test_output | |
|
||
iOSInjectionProject/ | ||
.DS_Store | ||
|
||
# GoReleaser | ||
dist/ |
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,76 @@ | ||
# This is an example .goreleaser.yml file with some sensible defaults. | ||
# Make sure to check the documentation at https://goreleaser.com | ||
|
||
# Adapted from https://github.com/LGUG2Z/komorebi/blob/e240bc770619fa7c1f311b8a376551f2dde8a2d7/.goreleaser.yml | ||
project_name: ouverture | ||
|
||
before: | ||
hooks: | ||
- bash -c 'echo "package main; func main() {}" > dummy.go' | ||
|
||
builds: | ||
- id: ouverture | ||
binary: ovt | ||
main: dummy.go | ||
# env: | ||
# - CGO_ENABLED=0 | ||
goos: | ||
- darwin | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
|
||
universal_binaries: | ||
- replace: true | ||
id: ouverture | ||
hooks: | ||
post: | ||
- mkdir -p ./dist/ouverture_darwin_all | ||
- bash -c 'cp "$(swift build --show-bin-path -c release --arch arm64 --arch x86_64)/ovt" ./dist/ouverture_darwin_all/ovt' | ||
|
||
archives: | ||
- format: tar.gz | ||
# https://goreleaser.com/customization/archive/#packaging-only-the-binaries | ||
files: | ||
- none* | ||
name_template: >- | ||
{{ .ProjectName }}_ | ||
{{- .Os }}_ | ||
{{- if eq .Arch "all" }}universal2 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
{{- if .Arm }}v{{ .Arm }}{{ end }} | ||
format_overrides: | ||
# Use zip for windows archives | ||
- goos: windows | ||
format: zip | ||
|
||
checksum: | ||
name_template: "checksums.txt" | ||
|
||
brews: | ||
# https://goreleaser.com/customization/homebrew/ | ||
- homepage: https://github.com/rami3l/Ouverture | ||
description: A default application modifier for macOS. | ||
license: BSD-2-Clause | ||
|
||
install: | | ||
bin.install "ovt" | ||
test: | | ||
system "#{bin}/ovt" | ||
skip_upload: auto | ||
|
||
# https://github.com/goreleaser/goreleaser/blob/a0f0d01a8143913cde72ebc1248abef089ae9b27/.goreleaser.yaml#L211 | ||
repository: | ||
owner: rami3l | ||
name: homebrew-tap | ||
branch: "{{.ProjectName}}-{{.Version}}" | ||
token: "{{ .Env.TAP_GITHUB_TOKEN }}" | ||
pull_request: | ||
enabled: true | ||
base: | ||
owner: rami3l | ||
name: homebrew-tap | ||
branch: master |
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,25 @@ | ||
BSD 2-Clause License | ||
|
||
Copyright (c) 2023, rami3l | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, this | ||
list of conditions and the following disclaimer. | ||
|
||
2. Redistributions in binary form must reproduce the above copyright notice, | ||
this list of conditions and the following disclaimer in the documentation | ||
and/or other materials provided with the distribution. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" | ||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE | ||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE | ||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | ||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |