Skip to content

Commit

Permalink
attempt to fix actions 4
Browse files Browse the repository at this point in the history
  • Loading branch information
asdfugil committed Jan 1, 2025
1 parent 9ec8c3b commit b45dd02
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
matrix:
include:
- arch: arm64
os: ios
minos: "12.0"
sdk: iphoneos
target: "ios12.0"
- arch: arm64
os: tvos
minos: "12.0"
sdk: appletvos
target: "tvos12.0"
runs-on: macos-15
name: Build
steps:
Expand All @@ -42,11 +42,11 @@ jobs:
- name: Setup environment
run: |
export MACOSX_SYSROOT="$(xcrun -sdk macosx --show-sdk-path)"
export TARGET_SYSROOT="$(xcrun -sdk ${{ matrix.os }} --show-sdk-path)"
export TARGET_SYSROOT="$(xcrun -sdk ${{ matrix.sdk }} --show-sdk-path)"
echo "CC=$(xcrun --find cc)" >> $GITHUB_ENV
echo "CFLAGS=-g -Wextra -Wno-unused-parameter -flto=thin -Os -isystem ${TARGET_SYSROOT}/usr/include/c++/v1 -arch ${{ matrix.arch }} -mtargetos=${{ matrix.os }}${{ matrix.minos }} -isysroot ${TARGET_SYSROOT} -isystem ${HOME}/include" >> $GITHUB_ENV
echo "CFLAGS=-g -Wextra -Wno-unused-parameter -flto=thin -Os -isystem ${TARGET_SYSROOT}/usr/include/c++/v1 -arch ${{ matrix.arch }} -mtargetos=${{ matrix.target }} -isysroot ${TARGET_SYSROOT} -isystem ${HOME}/include" >> $GITHUB_ENV
echo "STRIP=xcrun -sdk iphoneos strip" >> $GITHUB_ENV
echo "LDFLAGS=-Os -flto=thin -mtargetos=${{ matrix.os }}${{ matrix.minos }} -isysroot ${TARGET_SYSROOT}" >> $GITHUB_ENV
echo "LDFLAGS=-Os -flto=thin -mtargetos=${{ matrix.target }} -isysroot ${TARGET_SYSROOT}" >> $GITHUB_ENV
gh release download -R ProcursusTeam/ldid -p ldid_macosx_x86_64
install -m755 ldid_macosx_x86_64 ldid
echo "${PWD}" >> $GITHUB_PATH
Expand Down Expand Up @@ -83,18 +83,18 @@ jobs:
- name: Build
run: |
make -j$(sysctl -n hw.ncpu)
mv launchctl launchctl_${{ matrix.os }}_${{ matrix.arch }}
mv launchctl launchctl_${{ matrix.sdk }}_${{ matrix.arch }}
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: launchctl_${{ matrix.os }}_${{ matrix.arch }}
path: launchctl_${{ matrix.os }}_${{ matrix.arch }}
name: launchctl_${{ matrix.sdk }}_${{ matrix.arch }}
path: launchctl_${{ matrix.sdk }}_${{ matrix.arch }}

- name: Upload to release
uses: softprops/action-gh-release@v2
if: ${{ github.event_name == 'release' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: launchctl_${{ matrix.os }}_${{ matrix.arch }}
files: launchctl_${{ matrix.sdk }}_${{ matrix.arch }}

0 comments on commit b45dd02

Please sign in to comment.