Skip to content

chore(deps): bump manylinux from 3c1d800 to 75aeda9 #19

chore(deps): bump manylinux from 3c1d800 to 75aeda9

chore(deps): bump manylinux from 3c1d800 to 75aeda9 #19

Workflow file for this run

name: Build
on:
workflow_dispatch:
inputs:
useCache:
description: Use GHA cache
type: boolean
required: false
default: true
push:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
jobs:
build_manylinux:
name: ${{ matrix.policy }}_${{ matrix.platform }}
runs-on: ubuntu-22.04
permissions:
actions: write # this permission is needed to delete cache
packages: write
contents: read
strategy:
fail-fast: false
matrix:
policy: [ "manylinux_2_31" ]
platform: [ "x86_64" ]
env:
POLICY: ${{ matrix.policy }}
PLATFORM: ${{ matrix.platform }}
COMMIT_SHA: ${{ github.sha }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 50
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
- name: Apply patches
run: |
python -m pip install "patch_ng"
python ./apply_patches.py
echo "COMMIT_SHA=$(git rev-parse HEAD:manylinux)" >> $GITHUB_ENV
- name: Set up emulation
if: matrix.platform != 'i686' && matrix.platform != 'x86_64'
uses: docker/setup-qemu-action@v3
with:
platforms: ${{ matrix.platform }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Restore cache
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
uses: actions/cache/restore@v4
with:
path: manylinux/.buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
- name: Build
run: cd manylinux && ./build.sh
- name: Delete cache
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
run: |
KEY="buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}"
gh cache delete ${KEY} || true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Save cache
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
uses: actions/cache/save@v4
with:
path: manylinux/.buildx-cache-${{ matrix.policy }}_${{ matrix.platform }}/*
key: buildx-cache-${{ matrix.policy }}-${{ matrix.platform }}
- name: Deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository == 'EndstoneMC/manylinux'
run: cd manylinux && ./deploy.sh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
all_passed:
needs: [ build_manylinux ]
runs-on: ubuntu-latest
steps:
- run: echo "All jobs passed"