Skip to content

Commit

Permalink
Merge pull request #41 from Vipon/issue_40
Browse files Browse the repository at this point in the history
Add print relocations for macho and PE format.
  • Loading branch information
Vipon authored Oct 14, 2023
2 parents 85175e8 + a8df591 commit 4cfc7ec
Show file tree
Hide file tree
Showing 41 changed files with 2,177 additions and 474 deletions.
22 changes: 0 additions & 22 deletions .github/actions/set_env/action.yml

This file was deleted.

34 changes: 34 additions & 0 deletions .github/actions/set_env_var/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
inputs:
shell:
description: 'shell for running make'
required: true
path:
description: 'add to PATH env variable'
required: false
cpath:
description: 'assign CPATH env variable'
required: false
default: '${CPATH}'
library_path:
description: 'assign LIBRARY_PATH env variable'
required: false
default: '${LIBRARY_PATH}'

runs:
using: "composite"
steps:
- name: Setup Win Vars
if: runner.os == 'Windows'
run: |
echo "${{ inputs.path }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
echo "CPATH=${{ inputs.cpath }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
echo "LIBRARY_PATH=${{ inputs.library_path }}" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
shell: ${{ inputs.shell }}
- name: Setup Unix Vars
if: runner.os != 'Windows'
run: |
echo "${{ inputs.path }}" >> $GITHUB_PATH
echo "CPATH=${{ inputs.cpath }}" >> $GITHUB_ENV
echo "LIBRARY_PATH=${{ inputs.library_path }}" >> $GITHUB_ENV
shell: ${{ inputs.shell }}

98 changes: 55 additions & 43 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ jobs:
macos-latest-default-debug:
runs-on: macos-latest
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Debug Xcode
run: ./configure
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Xcode
run: ./configure
- name: Xcode Built Test Install
uses: ./.github/actions/xcode_build_test_install
with:
Expand All @@ -23,18 +23,18 @@ jobs:
macos-latest-gmake-debug:
runs-on: macos-latest
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
Expand All @@ -43,18 +43,18 @@ jobs:
macos-latest-ninja-debug:
runs-on: macos-latest
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Ninja Build Test Install
uses: ./.github/actions/ninja_build_test_install
with:
Expand All @@ -63,18 +63,18 @@ jobs:
macos-latest-gmake-release:
runs-on: macos-latest
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:/usr/local/opt/argp-standalone/include:${CPATH}
library_path: ${HOME}/.local/lib:/usr/local/opt/argp-standalone/lib/:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
Expand All @@ -90,18 +90,18 @@ jobs:
ubuntu-2004-gmake-debug:
runs-on: ubuntu-20.04
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Debug Gmake
run: ./configure --gmake --output gmake
- name: Gmake Built Test Install
uses: ./.github/actions/gmake_build_test_install
with:
Expand All @@ -110,19 +110,19 @@ jobs:
ubuntu-2004-ninja-debug:
runs-on: ubuntu-20.04
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- run: chmod 0744 "${HOME}/.local/bin/ninja"
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- run: chmod 0744 "${HOME}/.local/bin/ninja"
- name: Configure Debug Ninja
run: ./configure --ninja --output ninja
- name: Ninja Build Test Install
uses: ./.github/actions/ninja_build_test_install
with:
Expand All @@ -131,18 +131,18 @@ jobs:
ubuntu-2004-gmake-release:
runs-on: ubuntu-20.04
steps:
- run: echo "${HOME}/.local/bin" >> $GITHUB_PATH
- name: Checkout
uses: actions/checkout@v3
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Set Env
uses: ./.github/actions/set_env
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
shell: bash
path: ${HOME}/.local/bin
cpath: ${HOME}/.local/include:${CPATH}
library_path: ${HOME}/.local/lib:${LIBRARY_PATH}
- run: ./setup.sh
- name: Configure Gmake Release
run: ./configure --gmake --release --output gmake_release
- name: Gmake Build Test Install
uses: ./.github/actions/gmake_build_test_install
with:
Expand All @@ -160,6 +160,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\;C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Debug
run: python .\configure --ninja --static
Expand All @@ -173,6 +177,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Debug
run: python .\configure --vs --static
Expand All @@ -190,6 +198,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Env Variables
uses: ./.github/actions/set_env_var
with:
path: C:\bin\ccache\
- run: .\setup.bat
- name: Configure MSVC Release
run: python .\configure --vs --release
Expand Down
Loading

0 comments on commit 4cfc7ec

Please sign in to comment.