Skip to content

Commit

Permalink
Try to ensure that docker is running first
Browse files Browse the repository at this point in the history
  • Loading branch information
arcivanov committed Jan 30, 2025
1 parent 3bd81bd commit 25fd221
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,10 @@ jobs:
./patch.sh
echo "COMMIT_SHA=$(git rev-parse HEAD:manylinux)" >> $GITHUB_ENV
- name: Start Docker
run: |
sudo systemctl start docker
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Expand Down
24 changes: 14 additions & 10 deletions build.yml.patch
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--- a/.github/workflows/build.yml 2024-12-22 20:43:53.742261013 -0500
+++ b/.github/workflows/build.yml 2024-12-22 20:45:37.868820580 -0500
--- .github/workflows/build.yml 2025-01-30 14:56:53.877719708 -0500
+++ .github/workflows/build.yml 2025-01-30 14:58:29.435519135 -0500
@@ -9,20 +9,9 @@
required: false
default: true
Expand Down Expand Up @@ -29,10 +29,10 @@
python-version: "3.x"
- - uses: pre-commit/action@v3.0.1

build_manylinux:
needs: [pre_commit]
@@ -44,6 +32,9 @@
runs-on: ubuntu-22.04
build_matrix:
needs: pre_commit
@@ -67,6 +55,9 @@
runs-on: ${{ matrix.runner }}
permissions:
actions: write # this permission is needed to delete cache
+ packages: write
Expand All @@ -41,7 +41,7 @@
strategy:
fail-fast: false
matrix:
@@ -64,6 +55,12 @@
@@ -81,6 +72,16 @@
uses: actions/checkout@v4
with:
fetch-depth: 50
Expand All @@ -51,10 +51,14 @@
+ run: |
+ ./patch.sh
+ echo "COMMIT_SHA=$(git rev-parse HEAD:manylinux)" >> $GITHUB_ENV
+
+ - name: Start Docker
+ run: |
+ sudo systemctl start docker

- name: Set up emulation
if: matrix.platform != 'i686' && matrix.platform != 'x86_64'
@@ -78,33 +75,38 @@
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@@ -89,33 +90,38 @@
if: github.event_name != 'workflow_dispatch' || fromJSON(github.event.inputs.useCache)
uses: actions/cache/restore@v4
with:
Expand Down

0 comments on commit 25fd221

Please sign in to comment.