Skip to content

Commit

Permalink
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 9712c10
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: C/xcodebuild CI

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

jobs:
build:
name: Build on ${{ matrix.os }}
timeout-minutes: 5
strategy:
fail-fast: false
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
xcodebuild "SDKROOT=macosx" "VALID_ARCHS=$(uname -m)" "CURRENT_ARCH=$(uname -m)" "ONLY_ACTIVE_ARCH=YES" 'LIBRARY_SEARCH_PATHS=$(LIBRARY_SEARCH_PATHS) /usr/local/lib' 'OTHER_LDFLAGS=$(OTHER_LDFLAGS) -lgetargv' 'OTHER_CFLAGS=$(OTHER_CFLAGS) -DPRIVATE' 'HEADER_SEARCH_PATHS=$(HEADER_SEARCH_PATHS) /usr/local/include' -scheme ps
working-directory: adv_cmds
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}
path: ~/Library/Developer/Xcode/DerivedData/adv_cmds-*/Build/Products/Release/ps*

0 comments on commit 9712c10

Please sign in to comment.