Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
5ac2fae
Refactor url parsing into function
trinitronx Jan 19, 2025
8dc7494
Pass code as function parameter
trinitronx Jan 19, 2025
2f140ae
pcloud-drive Update to 3.15.4
trinitronx Jan 19, 2025
712da6f
Clear GitHub Actions Cache @ 1737287384
trinitronx Jan 19, 2025
0c46895
GitHub Actions: Update actions/upload-artifact to v4
trinitronx Jan 19, 2025
3ddf544
GitHub Actions: Turn on Debug CI
trinitronx Jan 19, 2025
5e6ee4d
GitHub Actions: Remove old ssh key & checkout steps - Just use Homebr…
trinitronx Feb 1, 2025
2cb5d82
GitHub Actions: Remove deprecated macos-12 and test on latest macos-15
trinitronx Feb 1, 2025
dc68799
GitHub Actions: Fix debug brew path on arm64
trinitronx Feb 1, 2025
ca376d4
GitHub Actions: Overwrite debug install.log artifact
trinitronx Feb 1, 2025
4943d48
GitHub Actions: Use GHA global debug value also
trinitronx Feb 1, 2025
a51e6a8
GitHub Actions: Try to fix testing from merge commit (Homebrew/action…
trinitronx Feb 1, 2025
0db1b42
GitHub Actions: Debug git merge commit fix
trinitronx Feb 1, 2025
1bf06f3
GitHub Actions: Try disabling rubocop cache
trinitronx Feb 1, 2025
cfe9b8a
GitHub Actions: Debug pcloud-drive cask contents
trinitronx Feb 1, 2025
65e0fab
GitHub Actions: Checkout PR merge commit just before running tests
trinitronx Feb 1, 2025
042d98b
GitHub Actions: Split brew bundle install into separate task
trinitronx Feb 1, 2025
60d55b2
GitHub Actions: Add fix notes about GHA merge commit ref
trinitronx Feb 1, 2025
8b2a798
Revert "GitHub Actions: Try disabling rubocop cache"
trinitronx Feb 1, 2025
962ce7a
GitHub Actions: Turn off CI Debugging
trinitronx Feb 1, 2025
f270603
GitHub Actions: Limit to 25 last commits in pretty log
trinitronx Feb 1, 2025
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
2 changes: 1 addition & 1 deletion .github/clear_github_actions_cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1647410082
1737287384
53 changes: 28 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,16 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-12, macos-13, macos-14]
os: [macos-13, macos-14, macos-15]
steps:
# Now handled by Homebrew/actions/setup-homebrew
# See: https://github.com/Homebrew/actions/blob/master/setup-homebrew/main.sh#L207-L242
# Note: brew update-reset resets to master branch, so we must checkout PR merge
# ref again later to test against latest changes.
# We also use pull_request rather than pull_request_target to avoid
# exposing secrets other than the ReadOnly GITHUB_TOKEN
# - name: Check out code
# uses: actions/checkout@v4
- uses: webfactory/ssh-agent@v0.9.0
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Add SSH_AUTH_SOCK to user shell .profile
run: |
sudo tee -a ~/.profile <<EOPROFILE
SSH_AUTH_SOCK=${{ env.SSH_AUTH_SOCK }}
EOPROFILE
- name: Configure global git SSH URLs
run: |
git config --global url."git@github.com:".insteadOf "https://github.com/"

- name: Set BREWFILE_PATH env var
run: |
Expand All @@ -45,18 +38,12 @@ jobs:
id: set-up-homebrew
uses: Homebrew/actions/setup-homebrew@master

- name: Check out Pull Request
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: DEBUG Tap Repo
run: |
echo HOMEBREW_TAP_REPOSITORY=${{ steps.set-up-homebrew.outputs.repository-path }}
ls -l ${{ steps.set-up-homebrew.outputs.repository-path }}
cd ${{ steps.set-up-homebrew.outputs.repository-path }} && git status && git log --graph --decorate --oneline --all --abbrev-commit
if: ${{ env.debug_ci == 'true' }}
if: ${{ env.debug_ci == 'true' || runner.debug == '1' }}

- name: Cache Homebrew Bundler RubyGems
id: cache
Expand Down Expand Up @@ -102,7 +89,7 @@ jobs:
# brew-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/clear_github_actions_cache') }}-${{ hashFiles( env.BREWFILE_PATH, '**/Brewfile.lock.json') }}
# brew-${{ runner.os }}-${{ runner.arch }}-${{ hashFiles('.github/clear_github_actions_cache') }}

- name: Run brew update
- name: Run brew update-reset
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
Expand All @@ -114,19 +101,34 @@ jobs:
HOMEBREW_DEVELOPER: 1
run: |
brew cleanup
- name: Run brew bundle install (CI dependencies)
env:
HOMEBREW_COLOR: 1
HOMEBREW_DEVELOPER: 1
run: |
brew bundle install --file=${BREWFILE_PATH}
- name: DEBUG - GitHub Workspace
run: |
echo GITHUB_WORKSPACE="$GITHUB_WORKSPACE"
if: ${{ env.debug_ci == 'true' }}
if: ${{ env.debug_ci == 'true' || runner.debug == '1' }}
- name: DEBUG - Print all shell env exports
run: export -p
if: ${{ env.debug_ci == 'true' }}
if: ${{ env.debug_ci == 'true' || runner.debug == '1' }}

- name: Git checkout GHA event ref (PR merge commit)
run: |
echo "github.ref = ${{ github.ref }}"
git fetch origin ${{ github.ref }}
git checkout -qf FETCH_HEAD
git show
git status && git log --graph --decorate --oneline --all --abbrev-commit -n 25

- name: DEBUG - List workspace and Homebrew contents
run: |
ls -lR "${GITHUB_WORKSPACE}"
ls -lR /usr/local/Homebrew
if: ${{ env.debug_ci == 'true' }}
cat "${GITHUB_WORKSPACE}/Casks/pcloud-drive.rb"
ls -lR "$(brew --repo)"
if: ${{ env.debug_ci == 'true' || runner.debug == '1' }}
- name: Run tap install
env:
HOMEBREW_COLOR: 1
Expand All @@ -141,7 +143,8 @@ jobs:
make test
- name: Upload install.log on failure
if: ${{ failure() }}
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Build failure logs
path: /var/log/install.log
overwrite: true
10 changes: 6 additions & 4 deletions Casks/pcloud-drive.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@


cask "pcloud-drive" do
version "3.15.2"
version "3.15.4"

sha256 "244794dde3f242f82e1644e0dd9bb859d318499ff101c25637b579d96a26bd1c"
sha256 "475f0608e2d78f65e64eebac07656e241dc624e659ecbac7d20aabea6202b30f"
pkg "pCloud Drive #{version.to_s} UNIVERSAL.pkg"
code = "XZJPkU0Zsz7DuTM5Bb7YhYyHJJJmLQhdVorX"
code = "XZevlJ5Z082XHstfOoJ1gk5l4RJVqQWUaew7"

url do
def construct_url(code)
require "net/http"
require "json"
api = "https://api.pcloud.com/"
Expand All @@ -38,6 +38,8 @@
"https://" + data["hosts"][0] + data["path"]
end

url construct_url(code)

livecheck do
url "https://www.pcloud.com/release-notes/mac-os.html"
strategy :page_match
Expand Down
Loading