Skip to content

Commit

Permalink
try to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Logicer16 committed Dec 20, 2024
1 parent 85dd9a7 commit 7347c13
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- cron: '0 0 1 */2 *'

env:
outPath: "/usr/local/lib/pam/pam-watchid.so.2"
outPath: "/usr/local/lib/pam/pam-watchid.so"

jobs:
build:
Expand Down Expand Up @@ -41,19 +41,20 @@ jobs:

- name: Get Version
id: getVersion
if: ${{ matrix.xcode-select == 'xcode' && matrix.version == 15 }}
run: echo "version=$(cat version)" >> "$GITHUB_OUTPUT"

- name: Upload artifacts
uses: actions/upload-artifact@v4
if: ${{ matrix.xcode-select == 'xcode' && matrix.version == 15 }}
with:
name: pam-watchid.so.${{ steps.getVersion.outputs.version }}
path: ${{ env.outPath }}
path: ${{ env.outPath }}.${{ steps.getVersion.outputs.version }}
if-no-files-found: error
retention-days: ${{ github.event_name == 'pull_request' && 7 || 90 }}

- name: Generate artifact attestation
uses: actions/attest-build-provenance@v2
if: ${{ matrix.xcode-select == 'xcode' && matrix.version == 15 }}
with:
subject-path: ${{ env.outPath }}
subject-path: ${{ env.outPath }}.${{ steps.getVersion.outputs.version }}
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ ifeq "$(SDK_REQUIRED_MAJOR_VER)" "$(word 1, $(sort $(SDK_REQUIRED_MAJOR_VER) $(X
endif

all:
echo $(VERSION)
swiftc watchid-pam-extension.swift $(DEFINES) -o $(LIBRARY_PREFIX)_x86_64.so -target x86_64-$(TARGET) -emit-library
swiftc watchid-pam-extension.swift $(DEFINES) -o $(LIBRARY_PREFIX)_arm64.so -target arm64-$(TARGET) -emit-library
lipo -create $(LIBRARY_PREFIX)_arm64.so $(LIBRARY_PREFIX)_x86_64.so -output $(LIBRARY_NAME)
Expand Down

0 comments on commit 7347c13

Please sign in to comment.