mirror of
https://github.com/chromebrew/chromebrew.git
synced 2026-01-10 07:57:59 -05:00
bsd: libbsd talloc (#12301)
* Update libbsd Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bsd: Build Run on linux/386. * bsd: Build Run on linux/amd64. * bsd: Build Run on linux/arm/v7. * bsd: Package File Update Run on linux/386 container. * Update talloc, and refactor getrealdeps.rb Signed-off-by: Satadru Pramanik <satadru@gmail.com> * bsd: Package File Update Run on linux/386 container. * bsd: Package File Update Run on linux/amd64 container. * bsd: Package File Update Run on linux/arm/v7 container. * Further adjust workflows. 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
b00c45dae1
commit
f951614543
17
.github/workflows/Build.yml
vendored
17
.github/workflows/Build.yml
vendored
@@ -326,7 +326,7 @@ jobs:
|
||||
group: ${{ matrix.arch }}-${{ github.workflow }}-${{ inputs.branch || github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- name: fail if build jobs failed
|
||||
- name: Fail if build jobs failed
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
run: exit 1
|
||||
- name: Dump GitHub context
|
||||
@@ -449,7 +449,7 @@ jobs:
|
||||
- update-package-files
|
||||
if: ${{ !cancelled() }}
|
||||
steps:
|
||||
- name: fail if update or build jobs failed, otherwise create a PR
|
||||
- name: Fail if update or build jobs failed, otherwise create a PR
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
run: exit 1
|
||||
- name: Report update & build success
|
||||
@@ -468,7 +468,8 @@ jobs:
|
||||
persist-credentials: true
|
||||
ref: ${{ inputs.branch || github.ref_name }}
|
||||
token: ${{ steps.get_workflow_token.outputs.token }}
|
||||
- name: Rebase to master
|
||||
- name: Rebase to master and save git log
|
||||
id: rebase-and-git-log
|
||||
run: |
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
@@ -477,6 +478,9 @@ jobs:
|
||||
git reset --hard "origin/${{ inputs.branch || github.ref_name }}"
|
||||
git pull --rebase origin master && git push -f
|
||||
git log --oneline -10
|
||||
git checkout master && git pull
|
||||
git log --oneline master..${{ inputs.branch || github.ref_name }} | tr '\n' '\0' | xargs -0 -n1 echo "- $*" >> /tmp/commits.txt
|
||||
git checkout "${{ inputs.branch || github.ref_name }}"
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v46
|
||||
@@ -511,6 +515,9 @@ jobs:
|
||||
rm -rf /tmp/pr.txt
|
||||
echo -e "## Description" >> /tmp/pr.txt
|
||||
echo -e "- This PR was built using the Build.yml workflow, which was pointed to the ${{ inputs.branch || github.ref_name }} branch.\n" >> /tmp/pr.txt
|
||||
echo -e "#### Commits:" >> /tmp/pr.txt
|
||||
# Get git log from rebase-and-git-log step.
|
||||
cat /tmp/commits.txt >> /tmp/pr.txt
|
||||
if [[ "${CHANGED_GITHUB_CONFIG_FILES}" != "" ]]; then
|
||||
echo -e "### Updated GitHub configuration files:" >> /tmp/pr.txt
|
||||
for file in ${CHANGED_GITHUB_CONFIG_FILES}
|
||||
@@ -545,9 +552,9 @@ jobs:
|
||||
cat /tmp/pr.txt
|
||||
[[ $PR_TYPE == 'Draft Pull Request' ]] && export PR_DRAFT_FLAG='-d'
|
||||
if [[ -z ${PR_NUMBER} ]]; then
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "Build: ${{ inputs.branch || github.ref_name }} started at ${TIMESTAMP}." -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "${{ inputs.branch || github.ref_name }}: Build for ${CHANGED_PACKAGES}" -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
else
|
||||
gh pr edit -F /tmp/pr.txt
|
||||
gh pr edit --title "${{ inputs.branch || github.ref_name }}: Build for ${CHANGED_PACKAGES}" -F /tmp/pr.txt
|
||||
fi
|
||||
# Draft PRs can not be set to automerge.
|
||||
if [[ PR_TYPE == 'Draft Pull Request' ]]; then
|
||||
|
||||
25
.github/workflows/Generate-PR.yml
vendored
25
.github/workflows/Generate-PR.yml
vendored
@@ -12,6 +12,11 @@ on:
|
||||
branch:
|
||||
description: "Branch of chromebrew/chromebrew to run on, if different from this branch."
|
||||
required: false
|
||||
update_package_files:
|
||||
description: "Update Package Files."
|
||||
required: false
|
||||
type: boolean
|
||||
default: 'true'
|
||||
env:
|
||||
BRANCH: ${{ inputs.branch || github.ref_name }}
|
||||
permissions:
|
||||
@@ -165,7 +170,7 @@ jobs:
|
||||
group: ${{ matrix.arch }}-${{ github.workflow }}-${{ inputs.branch || github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
steps:
|
||||
- name: fail if build jobs failed
|
||||
- name: Fail if build jobs failed
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
run: exit 1
|
||||
- name: Dump GitHub context
|
||||
@@ -219,7 +224,10 @@ jobs:
|
||||
- name: Run Updater in container
|
||||
id: run-updater
|
||||
if: ${{ contains(needs.*.result, 'failure') || !cancelled() }}
|
||||
env:
|
||||
UPDATE_PACKAGE_FILES: ${{ github.event.inputs.update_package_files }}
|
||||
run: |
|
||||
[[ "$UPDATE_PACKAGE_FILES" == 'false' ]] && exit 0
|
||||
if [ "$PLATFORM" == 'linux/arm/v7' ] && [ -z "${armv7l_PACKAGES}" ]; then
|
||||
# Exit the arm container if there are not armv7l compatible packages.
|
||||
echo "Skipping armv7l container builds &/or package file updates."
|
||||
@@ -287,7 +295,7 @@ jobs:
|
||||
- update-package-files
|
||||
if: ${{ !cancelled() }}
|
||||
steps:
|
||||
- name: fail if update or build jobs failed, otherwise create a PR
|
||||
- name: Fail if update or build jobs failed, otherwise create a PR
|
||||
if: ${{ contains(needs.*.result, 'failure') }}
|
||||
run: exit 1
|
||||
- name: Report update & build success
|
||||
@@ -297,7 +305,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
ref: ${{ inputs.branch || github.ref_name }}
|
||||
- name: Rebase to master
|
||||
- name: Rebase to master and save git log
|
||||
id: rebase-and-git-log
|
||||
run: |
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
@@ -306,6 +315,9 @@ jobs:
|
||||
git reset --hard "origin/${{ inputs.branch || github.ref_name }}"
|
||||
git pull --rebase origin master && git push -f
|
||||
git log --oneline -10
|
||||
git checkout master && git pull
|
||||
git log --oneline master..${{ inputs.branch || github.ref_name }} | tr '\n' '\0' | xargs -0 -n1 echo "- $*" >> /tmp/commits.txt
|
||||
git checkout "${{ inputs.branch || github.ref_name }}"
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v46
|
||||
@@ -347,6 +359,9 @@ jobs:
|
||||
run: |
|
||||
rm -rf /tmp/pr.txt
|
||||
echo -e "## Description" >> /tmp/pr.txt
|
||||
echo -e "#### Commits:" >> /tmp/pr.txt
|
||||
# Get git log from rebase-and-git-log step.
|
||||
cat /tmp/commits.txt >> /tmp/pr.txt
|
||||
if [[ "${CHANGED_GITHUB_CONFIG_FILES}" != "" ]]; then
|
||||
echo -e "### Updated GitHub configuration files:" >> /tmp/pr.txt
|
||||
for file in ${CHANGED_GITHUB_CONFIG_FILES}
|
||||
@@ -382,9 +397,9 @@ jobs:
|
||||
[[ $DRAFT_PR == 'true' ]] && export PR_DRAFT_FLAG='-d'
|
||||
PR_NUMBER=$(gh pr list -H ${{ inputs.branch || github.ref_name }}| cut -f1)
|
||||
if [[ -z ${PR_NUMBER} ]]; then
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "${{ inputs.branch || github.ref_name }} at ${TIMESTAMP}." -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "${{ inputs.branch || github.ref_name }}: ${CHANGED_PACKAGES}" -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
else
|
||||
gh pr edit -F /tmp/pr.txt
|
||||
gh pr edit --title "${{ inputs.branch || github.ref_name }}: ${CHANGED_PACKAGES}" -F /tmp/pr.txt
|
||||
fi
|
||||
# Draft PRs can not be set to automerge.
|
||||
if [[ $DRAFT_PR == 'true' ]]; then
|
||||
|
||||
13
.github/workflows/No-Compile-Needed.yml
vendored
13
.github/workflows/No-Compile-Needed.yml
vendored
@@ -328,7 +328,8 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: true
|
||||
ref: ${{ inputs.branch || github.ref_name }}
|
||||
- name: Rebase to master
|
||||
- name: Rebase to master and save git log
|
||||
id: rebase-and-git-log
|
||||
run: |
|
||||
git config user.name "${{ github.actor }}"
|
||||
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
||||
@@ -337,6 +338,9 @@ jobs:
|
||||
git reset --hard "origin/${{ inputs.branch || github.ref_name }}"
|
||||
git pull --rebase origin master && git push -f
|
||||
git log --oneline -10
|
||||
git checkout master && git pull
|
||||
git log --oneline master..${{ inputs.branch || github.ref_name }} | tr '\n' '\0' | xargs -0 -n1 echo "- $*" >> /tmp/commits.txt
|
||||
git checkout "${{ inputs.branch || github.ref_name }}"
|
||||
- name: Get changed files
|
||||
id: changed-files
|
||||
uses: tj-actions/changed-files@v46
|
||||
@@ -378,6 +382,9 @@ jobs:
|
||||
rm -rf /tmp/pr.txt
|
||||
echo -e "## Description" >> /tmp/pr.txt
|
||||
echo -e "- This PR was built using the No-Compile-Needed.yml workflow, which was pointed to the ${{ inputs.branch || github.ref_name }} branch.\n" >> /tmp/pr.txt
|
||||
echo -e "#### Commits:" >> /tmp/pr.txt
|
||||
# Get git log from rebase-and-git-log step.
|
||||
cat /tmp/commits.txt >> /tmp/pr.txt
|
||||
if [[ "${CHANGED_GITHUB_CONFIG_FILES}" != "" ]]; then
|
||||
echo -e "### Updated GitHub configuration files:" >> /tmp/pr.txt
|
||||
for file in ${CHANGED_GITHUB_CONFIG_FILES}
|
||||
@@ -412,9 +419,9 @@ jobs:
|
||||
cat /tmp/pr.txt
|
||||
[[ $DRAFT_PR == 'true' ]] && export PR_DRAFT_FLAG='-d'
|
||||
if [[ -z ${PR_NUMBER} ]]; then
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "Build: ${{ inputs.branch || github.ref_name }} started at ${TIMESTAMP}." -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
PR_NUMBER=$(gh pr create ${PR_DRAFT_FLAG} --reviewer chromebrew/active --title "${{ inputs.branch || github.ref_name }}: Build for ${CHANGED_PACKAGES}" -F /tmp/pr.txt | rev | cut -d"/" -f1 | rev)
|
||||
else
|
||||
gh pr edit -F /tmp/pr.txt
|
||||
gh pr edit --title "${{ inputs.branch || github.ref_name }}: Build for ${CHANGED_PACKAGES}" -F /tmp/pr.txt
|
||||
fi
|
||||
# Draft PRs can not be set to automerge.
|
||||
if [[ $DRAFT_PR == 'true' ]]; then
|
||||
|
||||
Reference in New Issue
Block a user