Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Split GitHub workflow script into multiple scripts

Đang mở
#1,870 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
52/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
c, github-actions
Lĩnh vực
ci-cd

Hướng nghiên cứu

Read .github/workflows/c-cpp.yml and compare its Ubuntu and macOS job steps and configuration. Split the workflow into separate OS scripts while preserving their build behavior and shared --with and --enable options where practical. Done when each OS can run independently and CI still builds successfully.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Enhancement

Currently .github/workflows/c-cpp.yml run Continuous Integration (CI) on Ubuntu "latest" and MacOS "latest". While this works and most configuration settings are shared, there are exceptions, particularly for MacOS which makes its stanzas a bit less straightforward than they could be.

I floated the idea to @dforsi and @markjfine in PR #1862 and both thought there is some merit to the idea. Daniele commented as follows:

I think that's a good idea because we can see if a failure is only in one OS. It will also make it easier to add another workflow for Windows or Raspberry or something else. In the current workflow I like the sharing of the --with and --enable options, while overriding values for some steps, I don't know how to share them between different scripts.

I see that workflows can be executed manually with the trigger on workflow_dispatch, this can be useful to test the split scripts before having them run automatically, there isn't much documentation because it seems to work similar to on push/on pull_request:

https://github.blog/changelog/2020-07-06-github-actions-manual-triggers-with-workflow_dispatch/
https://docs.github.com/en/actions/reference/workflows-and-actions/workflow-syntax?s=09#onworkflow_dispatch

With this approach I presume that each build will be self-contained with some apparent duplication between scripts. This really isn't an issue as these files just sit in the repository and are not a part of the source distribution.

Ngôn ngữ chính
C
Star
851
Fork
308
Merge trung bình
5 ngày 5 giờ
Pull request đã merge (30 ngày)
5

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của Hamlib/Hamlib

Tất cả issue của Hamlib/Hamlib

Issue tương tự

Thêm issue về C

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.