From 1ab989c524e3bb6aa766af12a1abc564b35691dc Mon Sep 17 00:00:00 2001 From: Camden Narzt Date: Fri, 23 Aug 2024 15:07:13 -0600 Subject: [PATCH] try to add CI --- .github/workflows/actions.yml | 49 +++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 .github/workflows/actions.yml diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml new file mode 100644 index 0000000..8ef6d2c --- /dev/null +++ b/.github/workflows/actions.yml @@ -0,0 +1,49 @@ +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: | + mkdir -p "$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks/System.framework/Headers/sys/" + ls -R "$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks/System.framework/Headers/" + curl -o "$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks/System.framework/Headers/sys/persona.h" https://raw.githubusercontent.com/apple-oss-distributions/xnu/main/bsd/sys/persona.h + curl -o "$(xcrun --sdk macosx --show-sdk-path)/System/Library/Frameworks/System.framework/Headers/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 -I/usr/local/include|g' -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/*