Consider Docker images for Alpine and Fedora/MinGW builds #476

Closed
opened 2022-10-30 19:24:01 -05:00 by Youw · 6 comments
Youw commented 2022-10-30 19:24:01 -05:00 (Migrated from github.com)

As per suggestion: https://github.com/libusb/hidapi/issues/462#issuecomment-1296360252

  1. To avoid using builds.sr.ht and its limitations of only 4 builds at once
  2. To have all builds in Github Actions only
As per suggestion: https://github.com/libusb/hidapi/issues/462#issuecomment-1296360252 1) To avoid using `builds.sr.ht` and its limitations of only 4 builds at once 2) To have all builds in Github Actions only
mcuee commented 2022-10-30 20:14:21 -05:00 (Migrated from github.com)

FYI this docker image approach can be very fast.
Reference: the following is from Arduino avrdude-packing projects which contains six cross builds (as well as two other actions) at one go.
https://github.com/arduino/avrdude-packing/actions/workflows/release.yml

FYI this docker image approach can be very fast. Reference: the following is from Arduino avrdude-packing projects which contains six cross builds (as well as two other actions) at one go. https://github.com/arduino/avrdude-packing/actions/workflows/release.yml
mcuee commented 2022-10-30 20:24:19 -05:00 (Migrated from github.com)

libusb Linux github action also involves using Docker Container for the umockdev test (simulated USB device).

https://github.com/libusb/libusb/actions/runs/2989246626/jobs/4792835136

libusb Linux github action also involves using Docker Container for the umockdev test (simulated USB device). https://github.com/libusb/libusb/actions/runs/2989246626/jobs/4792835136
Youw commented 2023-04-30 13:02:47 -05:00 (Migrated from github.com)

I've checked Github Actions Docker Fedora MingGW build - it is insanly fast, i.e. practivally no time/performance overhead because of the Docker image used.
It looks like Github Actions using some caching for Docker images - it takes only ~ 5-6 seconds to initialize.

I've checked Github Actions Docker Fedora MingGW build - it is insanly fast, i.e. practivally no time/performance overhead because of the Docker image used. It looks like Github Actions using some caching for Docker images - it takes only ~ 5-6 seconds to initialize.
Youw commented 2023-04-30 15:03:56 -05:00 (Migrated from github.com)

The Archlinux takes insignificantly longer to initialize - ~10-11 sec.

The Archlinux takes insignificantly longer to initialize - ~10-11 sec.
Youw commented 2023-04-30 16:03:56 -05:00 (Migrated from github.com)

Alpine Docker build is even faster than Fedora.
If it wasn't for a bug I hit in musl - it would be so easy to make it work.

Anyways - the 3 PRs complete this story.

Alpine Docker build is even faster than Fedora. If it wasn't for a bug I hit in `musl` - it would be so easy to make it work. Anyways - the 3 PRs complete this story.
mcuee commented 2023-04-30 20:01:55 -05:00 (Migrated from github.com)

Good work!

Good work!
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-libusb/hidapi#476
No description provided.