Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher authored Dec 18, 2024
1 parent b6f4c43 commit 5abd2a7
Showing 1 changed file with 2 additions and 45 deletions.
47 changes: 2 additions & 45 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,52 +39,9 @@ jobs:
fetch-depth: 0 # default is 1
ref: "${{ github.ref }}"

- name: Find changed recipes
id: find
- name: build libs
shell: bash
run: |
ref="${{ github.ref_name == 'master' && 'HEAD~1' || 'origin/master' }}"
if [ "${{ inputs.all }}" = true ]; then
files=`ls -d recipes/*`
else
files=`git diff --name-only $ref`
fi
recipes=$(echo $files |
tr ' ' '\n' |
grep 'recipes/[^\.]*$' |
sed 's|recipes/\(.*\)|\1|g' |
tr '\n' ' ')
echo $recipes
if [ ! -z "$recipes" ]; then
echo "recipes=$recipes">> $GITHUB_OUTPUT
fi
- uses: r-lib/actions/setup-r@v2
with:
r-version: 'release'

- name: Create Makefile
run: Rscript scripts/mkmk.R

- name: Remove local stuff
run: |
sudo mkdir /usr/local/.disabled
sudo mv /usr/local/* /usr/local/.disabled/
- name: Build tools
run: |
make -C build pkgconfig
- name: Stubs
run: |
sudo mkdir -p /usr/local/lib/pkgconfig
sudo cp stubs/pkgconfig-darwin/*.pc /usr/local/lib/pkgconfig/
- name: Build R dependencies
if: success() && (inputs.recipes || steps.find.outputs.recipes)
run: make -C build ${{ inputs.recipes || steps.find.outputs.recipes }}
run: ./build.sh ${{ inputs.recipes }}

- name: Collect
if: success() && (inputs.recipes || steps.find.outputs.recipes)
Expand Down

0 comments on commit 5abd2a7

Please sign in to comment.