Skip to content

Commit

Permalink
try to add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
CamJN committed Aug 24, 2024
1 parent 0618e52 commit 4d87ade
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: C/xcodebuild CI

on:
push:
branches: [ main ]
tags: [ '*' ]
pull_request:
branches: [ main ]

jobs:
build:
name: Build on ${{ matrix.os }}
timeout-minutes: 5
strategy:
matrix:
os:
- macos-14
#- macos-13
#- macos-12
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
repository: getargv/getargv
path: getargv
token: ${{ secrets.GH_PAT }}
- name: Build libgetargv
run: make dylib
working-directory: getargv
- name: Install libgetargv
run: sudo make install_dylib
working-directory: getargv
- uses: actions/checkout@v4
with:
path: adv_cmds
- name: make
run: |
sudo mkdir -p /usr/local/include/System/sys/
sudo curl -o "/usr/local/include/System/sys/persona.h" https://raw.githubusercontent.com/apple-oss-distributions/xnu/main/bsd/sys/persona.h
sudo curl -o "/usr/local/include/System/sys/proc.h" https://raw.githubusercontent.com/apple-oss-distributions/xnu/main/bsd/sys/proc.h
sed -e 's/macosx.internal/macosx/g' -e 's|DPS_ENTITLED|DPS_ENTITLED -DPRIVATE -I/usr/local/include|g' -e '/DPS_ENTITLED.*/a\'$'\n'' OTHER_LDFLAGS = "-L/usr/local/lib -lgetargv"' -i '' adv_cmds.xcodeproj/project.pbxproj
xcodebuild -scheme ps
working-directory: adv_cmds
# - uses: actions/upload-artifact@v4
# with:
# name: ${{ matrix.os }}.zip
# path: |
# adv_cmds/*

0 comments on commit 4d87ade

Please sign in to comment.