mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-08 23:18:10 -05:00
Automatic PR to build packages for elfutils on 2024-12-12-21-29 (#10941)
* elfutils => 0.192 & adjust build wortkflow Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/arm/v7 to elfutils * Cleanup workflow. Signed-off-by: Satadru Pramanik <satadru@gmail.com> * Add built packages for linux/386 to elfutils * Add built packages for linux/amd64 to elfutils * Suggested changes. Signed-off-by: Satadru Pramanik <satadru@gmail.com> --------- Signed-off-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: Satadru Pramanik <satadru@gmail.com> Co-authored-by: satmandu <satmandu@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
b3e5fa8d08
commit
75c5887d6b
82
.github/workflows/Build.yml
vendored
82
.github/workflows/Build.yml
vendored
@@ -18,7 +18,19 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
- name: Rebase to master
|
||||
run: |
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git pull --rebase origin master
|
||||
git push -f
|
||||
- name: Push rebase changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
branch: ${{ github.ref_name }}
|
||||
force: true
|
||||
- name: Set workflow & branch variables
|
||||
id: set-variables
|
||||
run: |
|
||||
@@ -49,9 +61,6 @@ jobs:
|
||||
- name: Build Container cleanup
|
||||
run: |
|
||||
sudo rm -rf release
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: true
|
||||
- name: Dump GitHub context
|
||||
env:
|
||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||
@@ -76,12 +85,25 @@ jobs:
|
||||
env:
|
||||
MATRIX_CONTEXT: ${{ toJson(matrix) }}
|
||||
run: echo "$MATRIX_CONTEXT"
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
- name: Rebase to master
|
||||
run: |
|
||||
git fetch origin
|
||||
git checkout ${{ github.ref_name }}
|
||||
git reset --hard origin/${{ github.ref_name }}
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git pull --rebase origin master && git push -f
|
||||
- name: Get all changed package files
|
||||
id: changed-ruby-files
|
||||
uses: tj-actions/changed-files@v45
|
||||
with:
|
||||
base_sha: master
|
||||
files: packages/*.rb
|
||||
since_last_remote_commit: true
|
||||
- name: Export variables to github context
|
||||
run: |
|
||||
# Convert "packages/foo.rb packages/bar.rb" (from steps.changed-ruby-files.outputs.all_changed_files) into "foo bar"
|
||||
@@ -179,7 +201,9 @@ jobs:
|
||||
exit 0
|
||||
fi
|
||||
|
||||
git pull && git checkout ${CREW_BRANCH}
|
||||
git fetch origin
|
||||
git checkout ${{ github.ref_name }}
|
||||
git reset --hard origin/${{ github.ref_name }}
|
||||
docker pull --platform ${PLATFORM} satmandu/crewbuild:${CONTAINER}
|
||||
sudo apt install -y acl
|
||||
sudo setfacl -R -m u:1000:rwx .
|
||||
@@ -214,12 +238,9 @@ jobs:
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git add -A
|
||||
git commit -m "Add built packages for ${PLATFORM} to ${{ github.ref_name }}"
|
||||
git commit -m "Add built packages for ${PLATFORM} to ${{ github.ref_name }}" && git push -f
|
||||
git log --oneline -10
|
||||
fi
|
||||
- name: Push changes
|
||||
uses: ad-m/github-push-action@master
|
||||
with:
|
||||
branch: ${{ github.ref_name }}
|
||||
build-check:
|
||||
runs-on: ubuntu-24.04
|
||||
needs:
|
||||
@@ -232,32 +253,35 @@ jobs:
|
||||
run: exit 1
|
||||
- name: Report update & build success
|
||||
run: echo "Update & build jobs succeeded. Creating a PR."
|
||||
- name: Rebase to Master
|
||||
run: |
|
||||
git init --ref-format=reftable
|
||||
git remote add origin https://github.com/chromebrew/chromebrew
|
||||
git fetch --all
|
||||
git checkout -f master
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git pull
|
||||
git checkout ${{ github.ref_name }} && git rebase master
|
||||
# git commit -m "Merge master into ${{ github.ref_name }}." || true
|
||||
- name: Push rebase changes
|
||||
uses: ad-m/github-push-action@master
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
branch: ${{ github.ref_name }}
|
||||
force: true
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
- name: Rebase to master
|
||||
run: |
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
git fetch origin
|
||||
git reset --hard origin/${{ github.ref_name }}
|
||||
git pull --rebase origin master && git push -f
|
||||
git log --oneline -10
|
||||
- name: Get all changed package files
|
||||
id: changed-ruby-files
|
||||
uses: tj-actions/changed-files@v45
|
||||
with:
|
||||
base_sha: master
|
||||
files: packages/*.rb
|
||||
since_last_remote_commit: true
|
||||
- name: Export variables to github context
|
||||
run: |
|
||||
# Convert "packages/foo.rb packages/bar.rb" (from steps.changed-ruby-files.outputs.all_changed_files) into "foo bar"
|
||||
echo "CHANGED_PACKAGES=$(echo "${{ steps.changed-ruby-files.outputs.all_changed_files }}" | xargs basename -s .rb | xargs)" >> $GITHUB_ENV
|
||||
- name: Create Pull Request
|
||||
env:
|
||||
CREW_BRANCH: ${{ github.ref_name }}
|
||||
run: |
|
||||
git config --global user.name 'github-actions[bot]'
|
||||
git config --global user.email '41898282+github-actions[bot]@users.noreply.github.com'
|
||||
git fetch --shallow-since="1 week"
|
||||
mapfile -t updated_package_array < <( git diff-tree --no-commit-id --name-only -r $(git rev-parse origin/master)..$(git rev-parse --verify HEAD) | grep -v manifest | grep "^packages" | sed -e 's,packages/,,' -e 's,.rb,,')
|
||||
echo -e "Updated packages:" > /tmp/pr.txt
|
||||
for file in "${updated_package_array[@]}"
|
||||
for file in ${CHANGED_PACKAGES}
|
||||
do
|
||||
echo "- ${file}" >> /tmp/pr.txt
|
||||
done
|
||||
|
||||
1
.github/workflows/Unit-Test.yml
vendored
1
.github/workflows/Unit-Test.yml
vendored
@@ -10,6 +10,7 @@ on:
|
||||
- completed
|
||||
jobs:
|
||||
container_tests:
|
||||
if: ${{ ( github.repository_owner == 'chromebrew' ) && ( github.ref_name != 'master' ) }}
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [x86_64, armv7l, i686]
|
||||
|
||||
Reference in New Issue
Block a user