Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update gh actions and fix formula style #53

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ on:
jobs:
pr-pull:
if: contains(github.event.pull_request.labels.*.name, 'pr-pull')
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
permissions:
contents: write
packages: none
pull-requests: write
steps:
- name: Set up Homebrew
uses: Homebrew/actions/setup-homebrew@master
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,15 @@ name: brew test-bot
on:
push:
branches:
- master
- main
pull_request:
jobs:
test-bot:
strategy:
matrix:
os:
- macos-10.15
- macos-11
- macos-12
- macos-13
- macos-14
runs-on: ${{ matrix.os }}
steps:
- name: Set up Homebrew
Expand All @@ -20,28 +19,24 @@ jobs:

- name: Cache Homebrew Bundler RubyGems
id: cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ${{ steps.set-up-homebrew.outputs.gems-path }}
key: ${{ runner.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }}
restore-keys: ${{ runner.os }}-rubygems-

- name: Install Homebrew Bundler RubyGems
if: steps.cache.outputs.cache-hit != 'true'
run: brew install-bundler-gems

- run: brew test-bot --only-cleanup-before

- run: brew test-bot --only-setup

- run: brew test-bot --only-tap-syntax

- run: brew test-bot --only-formulae --root-url=https://ghcr.io/v2/stek29/idevice
- run: brew test-bot --only-formulae
if: github.event_name == 'pull_request'

- name: Upload bottles as artifact
if: always() && github.event_name == 'pull_request'
uses: actions/upload-artifact@main
uses: actions/upload-artifact@v3
with:
name: bottles
path: '*.bottle.*'
2 changes: 1 addition & 1 deletion Formula/fsmon.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Fsmon < Formula
desc "FileSystem events monitor"
homepage "https://github.com/nowsecure/fsmon"
url "https://github.com/nowsecure/fsmon/archive/1.8.5.tar.gz"
url "https://github.com/nowsecure/fsmon/archive/refs/tags/1.8.5.tar.gz"
sha256 "eb99cfb242bea9fc5bde66e67f4324bd71100d17b1672e4e52db14b9a5e2900a"
license "MIT"
head "https://github.com/nowsecure/fsmon.git", branch: "master"
Expand Down
2 changes: 1 addition & 1 deletion Formula/iokit-utils.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class IokitUtils < Formula
desc "Little dev tools for probing IOKit"
homepage "https://github.com/Siguza/iokit-utils"
url "https://github.com/Siguza/iokit-utils/archive/1.4.0.tar.gz"
url "https://github.com/Siguza/iokit-utils/archive/refs/tags/1.4.0.tar.gz"
sha256 "076731d902717cf60a9c8b1b2a176a0ee0caf96354219f509bdd8675200231c4"
license "MPL-2.0-no-copyleft-exception"
head "https://github.com/Siguza/iokit-utils.git", branch: "master"
Expand Down
2 changes: 1 addition & 1 deletion Formula/iometa.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Iometa < Formula
desc "Extracts C++ class runtime information from arm64 Darwin kernel"
homepage "https://github.com/Siguza/iometa"
url "https://github.com/Siguza/iometa/archive/1.6.6.tar.gz"
url "https://github.com/Siguza/iometa/archive/refs/tags/1.6.6.tar.gz"
sha256 "147c88729d897e78688ab969ffb009426d9f1e21895bab6e4e54baed4699dd30"
license "MPL-2.0-no-copyleft-exception"
head "https://github.com/Siguza/iometa.git", branch: "master"
Expand Down
2 changes: 1 addition & 1 deletion Formula/ios-kern-utils.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class IosKernUtils < Formula
desc "iOS Kernel utilities"
homepage "https://github.com/Siguza/ios-kern-utils"
url "https://github.com/Siguza/ios-kern-utils/archive/1.4.1.tar.gz"
url "https://github.com/Siguza/ios-kern-utils/archive/refs/tags/1.4.1.tar.gz"
sha256 "24cf9d393d94cdd351691ed1f062bb02af6d0853783b762546ab89b4e29a156a"
license "MIT"
head "https://github.com/Siguza/ios-kern-utils.git", branch: "master"
Expand All @@ -14,7 +14,7 @@
sha256 cellar: :any_skip_relocation, catalina: "dded795f5f2fa031258162dccbe42d5baf2448dc27cca0104b6d845311aa7bee"
end

def install

Check warning on line 17 in Formula/ios-kern-utils.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-13)

`brew install --verbose --build-bottle stek29/idevice/ios-kern-utils` failed on macOS Ventura (13)!

==> Fetching stek29/idevice/ios-kern-utils ==> Downloading https://github.com/Siguza/ios-kern-utils/archive/refs/tags/1.4.1.tar.gz Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz ==> Verifying checksum for 'ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz' ==> Installing ios-kern-utils from stek29/idevice /usr/bin/env tar --extract --no-same-owner --file /Users/runner/Library/Caches/Homebrew/downloads/ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz --directory /private/tmp/homebrew-unpack20240306-18685-h77fzd /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240306-18685-h77fzd/ios-kern-utils-1.4.1/. /private/tmp/ios-kern-utils-20240306-18685-jr7txi/ios-kern-utils-1.4.1 ==> make mkdir -p obj mkdir -p bin xcrun -sdk iphoneos gcc -c -o obj/debug.ios.o -std=gnu99 -O3 -Wall -Isrc/lib -arch armv7 -arch arm64 -miphoneos-version-min=6.0 src/lib/debug.c xcrun -sdk macosx gcc -c -o obj/debug.macos.o -std=gnu99 -O3 -Wall -Isrc/lib -arch x86_64 -mmacosx-version-min=10.10 src/lib/debug.c xcrun -sdk iphoneos gcc -c -o obj/libkern.ios.o -std=gnu99 -O3 -Wall -Isrc/lib -arch armv7 -arch arm64 -miphoneos-version-min=6.0 src/lib/libkern.c xcrun -sdk macosx gcc -c -o obj/libkern.macos.o -std=gnu99 -O3 -Wall -Isrc/lib -arch x86_64 -mmacosx-version-min=10.10 src/lib/libkern.c src/lib/libkern.c:345:25: error: call to undeclared function 'host_get_io_master'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kern_return_t ret = host_get_io_master(mach_host_self(), &master); ^ src/lib/libkern.c:345:25: note: did you mean 'host_get_io_main'? /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/mach/mach_host.h:151:15: note: 'host_get_io_main' declared here kern_return_t host_get_io_main ^ 1 error generated. make: *** [obj/libkern.macos.o] Error 1 make: *** Waiting for unfinished jobs.... src/lib/libkern.c:345:25: error: call to undeclared function 'host_get_io_master'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kern_return_t ret = host_get_io_master(mach_host_self(), &master); ^ src/lib/libkern.c:345:25: note: did you mean 'host_get_io_main'? /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/mach/mach_host.h:151:15: note: 'host_get_io_main' declared here kern_return_t host_get_io_main ^ 1 error generated. make: *** [obj/libkern.ios.o] Error 1 rm obj/debug.macos.o obj/debug.ios.o ==> Formula Tap: stek29/idevice Path: /usr/local/Homebrew/Library/Taps/stek29/homebrew-idevice/Formula/ios-kern-utils.rb ==> Configuration HOMEBREW_VERSION: 4.2.11-54-g76c7245 ORIGIN: https://github.com/Homebrew/brew HEAD: 76c7245d10d4f6219a2c3ac9b584dd8d9661087d Last commit: 2 hours ago Core tap HEAD: 7987fb379ba90bbd265cb5b41db8086a5e233d39 Core tap last commit: 2 weeks ago Core tap JSON: 06 Mar 19:36 UTC Core cask tap HEAD: 10b89b8ddeac7513b77c0d19afe6b759146b6d65 Core cask tap last commit: 2 weeks ago Core cask tap JSON: 06 Mar 19:36 UTC HOMEBREW_PREFIX: /usr/local HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/runner/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: ["--no-quarantine"] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/runner/work/homebrew-idevice/homebrew-idevice/logs HOMEBREW_MAKE_JOBS: 4 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALL_CLEANUP: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set Homebrew Ruby: 3.1.4 => /usr/local/Homebrew/Library/Homebrew/vendor/portable-ruby/3

Check warning on line 17 in Formula/ios-kern-utils.rb

View workflow job for this annotation

GitHub Actions / test-bot (macos-14)

`brew install --verbose --build-bottle stek29/idevice/ios-kern-utils` failed on macOS Sonoma (14) on Apple Silicon!

==> Fetching stek29/idevice/ios-kern-utils ==> Downloading https://github.com/Siguza/ios-kern-utils/archive/refs/tags/1.4.1.tar.gz Already downloaded: /Users/runner/Library/Caches/Homebrew/downloads/ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz ==> Verifying checksum for 'ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz' ==> Installing ios-kern-utils from stek29/idevice /usr/bin/env tar --extract --no-same-owner --file /Users/runner/Library/Caches/Homebrew/downloads/ec0cddd028ca06742da56458652d4795edf85e9a9cc0fb4f69320f2083bc126d--ios-kern-utils-1.4.1.tar.gz --directory /private/tmp/homebrew-unpack20240306-14635-6e5zux /usr/bin/env cp -pR /private/tmp/homebrew-unpack20240306-14635-6e5zux/ios-kern-utils-1.4.1/. /private/tmp/ios-kern-utils-20240306-14635-4jdn6j/ios-kern-utils-1.4.1 ==> make mkdir -p obj mkdir -p bin xcrun -sdk iphoneos gcc -c -o obj/debug.ios.o -std=gnu99 -O3 -Wall -Isrc/lib -arch armv7 -arch arm64 -miphoneos-version-min=6.0 src/lib/debug.c xcrun -sdk macosx gcc -c -o obj/debug.macos.o -std=gnu99 -O3 -Wall -Isrc/lib -arch x86_64 -mmacosx-version-min=10.10 src/lib/debug.c xcrun -sdk iphoneos gcc -c -o obj/libkern.ios.o -std=gnu99 -O3 -Wall -Isrc/lib -arch armv7 -arch arm64 -miphoneos-version-min=6.0 src/lib/libkern.c xcrun -sdk macosx gcc -c -o obj/libkern.macos.o -std=gnu99 -O3 -Wall -Isrc/lib -arch x86_64 -mmacosx-version-min=10.10 src/lib/libkern.c src/lib/libkern.c:345:25: error: call to undeclared function 'host_get_io_master'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kern_return_t ret = host_get_io_master(mach_host_self(), &master); ^ src/lib/libkern.c:345:25: note: did you mean 'host_get_io_main'? /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX14.0.sdk/usr/include/mach/mach_host.h:151:15: note: 'host_get_io_main' declared here kern_return_t host_get_io_main ^ 1 error generated. make: *** [obj/libkern.macos.o] Error 1 make: *** Waiting for unfinished jobs.... src/lib/libkern.c:345:25: error: call to undeclared function 'host_get_io_master'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] kern_return_t ret = host_get_io_master(mach_host_self(), &master); ^ src/lib/libkern.c:345:25: note: did you mean 'host_get_io_main'? /Applications/Xcode_15.0.1.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.0.sdk/usr/include/mach/mach_host.h:151:15: note: 'host_get_io_main' declared here kern_return_t host_get_io_main ^ 1 error generated. make: *** [obj/libkern.ios.o] Error 1 rm obj/debug.macos.o obj/debug.ios.o ==> Formula Tap: stek29/idevice Path: /opt/homebrew/Library/Taps/stek29/homebrew-idevice/Formula/ios-kern-utils.rb ==> Configuration HOMEBREW_VERSION: 4.2.11-54-g76c7245 ORIGIN: https://github.com/Homebrew/brew HEAD: 76c7245d10d4f6219a2c3ac9b584dd8d9661087d Last commit: 2 hours ago Core tap HEAD: 8cb8ab5002f24850e3e34f9dd8010e991b837736 Core tap last commit: 7 weeks ago Core tap JSON: 06 Mar 19:36 UTC Core cask tap HEAD: 319e0f182676ac109b8198c34d349ab25511c79e Core cask tap last commit: 7 weeks ago Core cask tap JSON: 06 Mar 19:36 UTC HOMEBREW_PREFIX: /opt/homebrew HOMEBREW_BOOTSNAP: set HOMEBREW_CACHE: /Users/runner/Library/Caches/Homebrew HOMEBREW_CASK_OPTS: ["--no-quarantine"] HOMEBREW_COLOR: set HOMEBREW_CURL_PATH: /usr/bin/curl HOMEBREW_FAIL_LOG_LINES: 150 HOMEBREW_GIT_EMAIL: [email protected] HOMEBREW_GIT_NAME: BrewTestBot HOMEBREW_GIT_PATH: /usr/bin/git HOMEBREW_LOGS: /Users/runner/work/homebrew-idevice/homebrew-idevice/logs HOMEBREW_MAKE_JOBS: 3 HOMEBREW_NO_AUTO_UPDATE: set HOMEBREW_NO_EMOJI: set HOMEBREW_NO_ENV_HINTS: set HOMEBREW_NO_INSTALL_CLEANUP: set HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: set Homebrew Ruby: 3.1.4 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.1.4/bin/
system "make"

cd "bin" do
Expand Down
Loading