mirror of
https://github.com/ipxe/ipxe.git
synced 2025-01-07 14:33:10 -06:00
trigger workflow
This commit is contained in:
parent
57bdca03df
commit
95de2716ab
47
.github/workflows/build.yml
vendored
47
.github/workflows/build.yml
vendored
@ -3,9 +3,33 @@ name: Build and Release
|
||||
on: push
|
||||
|
||||
jobs:
|
||||
|
||||
cache:
|
||||
name: Cache
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Cache permissions
|
||||
run: |
|
||||
sudo chown $(id -un) /var/cache/apt/archives
|
||||
- name: Cache packages
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: /var/cache/apt/archives/*.deb
|
||||
key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
restore-keys: |
|
||||
apt-cache-
|
||||
- name: Download packages
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y -d -o Acquire::Retries=50 \
|
||||
mtools syslinux isolinux \
|
||||
libc6-dev-i386 valgrind \
|
||||
gcc-arm-none-eabi gcc-aarch64-linux-gnu
|
||||
|
||||
build:
|
||||
name: Build on ${{ matrix.arch }}
|
||||
runs-on: ubuntu-22.04
|
||||
needs: cache
|
||||
strategy:
|
||||
matrix:
|
||||
include:
|
||||
@ -28,8 +52,19 @@ jobs:
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Cache permissions
|
||||
run: |
|
||||
sudo chown $(id -un) /var/cache/apt/archives
|
||||
|
||||
- name: Cache packages
|
||||
uses: actions/cache/restore@v4
|
||||
with:
|
||||
path: /var/cache/apt/archives/*.deb
|
||||
key: apt-cache-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
|
||||
- name: Install packages
|
||||
run: |
|
||||
sudo dpkg --add-architecture i386
|
||||
sudo apt update
|
||||
sudo apt install -y -o Acquire::Retries=50 ${{ matrix.packages }}
|
||||
|
||||
@ -80,15 +115,3 @@ jobs:
|
||||
- name: Download all artifacts
|
||||
uses: actions/download-artifact@v2
|
||||
|
||||
# The following step assumes artifacts are structured in a way that the release job can easily access and upload them.
|
||||
# You may need to adjust the script based on your actual artifact structure and names.
|
||||
- name: Upload Artifacts to Release
|
||||
run: |
|
||||
for artifact in $(ls -1); do
|
||||
if [[ -d "$artifact" ]]; then
|
||||
echo "Uploading $artifact..."
|
||||
gh release upload ${{ github.ref_name }} "${artifact}/*" --clobber -R ${{ github.repository }}
|
||||
fi
|
||||
done
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
Loading…
Reference in New Issue
Block a user