diff --git a/.github/docs-0.1.0.patch b/.github/docs-0.1.0.patch index 62b469d7..7e6133ca 100644 --- a/.github/docs-0.1.0.patch +++ b/.github/docs-0.1.0.patch @@ -40,3 +40,16 @@ index 0000000..98bb722 +"""A module represeting the version of rules_foreign_cc""" + +VERSION = "0.1.0" +diff --git a/docs/.bazelrc b/docs/.bazelrc +new file mode 100644 +index 0000000..9eb0697 +--- /dev/null ++++ b/docs/.bazelrc +@@ -0,0 +1,7 @@ ++# Bazel configuration flags for rules_foreign_cc_docs ++ ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod ++build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.10.1.patch b/.github/docs-0.10.1.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.10.1.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.2.0.patch b/.github/docs-0.2.0.patch index fa54ab3d..5a507563 100644 --- a/.github/docs-0.2.0.patch +++ b/.github/docs-0.2.0.patch @@ -40,3 +40,16 @@ index 0000000..98bb722 +"""A module represeting the version of rules_foreign_cc""" + +VERSION = "0.2.0" +diff --git a/docs/.bazelrc b/docs/.bazelrc +new file mode 100644 +index 0000000..9eb0697 +--- /dev/null ++++ b/docs/.bazelrc +@@ -0,0 +1,7 @@ ++# Bazel configuration flags for rules_foreign_cc_docs ++ ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod ++build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.3.0.patch b/.github/docs-0.3.0.patch index 9e65ebc1..835689e2 100644 --- a/.github/docs-0.3.0.patch +++ b/.github/docs-0.3.0.patch @@ -80,3 +80,16 @@ index 0000000..98bb722 +"""A module represeting the version of rules_foreign_cc""" + +VERSION = "0.3.0" +diff --git a/docs/.bazelrc b/docs/.bazelrc +new file mode 100644 +index 0000000..9eb0697 +--- /dev/null ++++ b/docs/.bazelrc +@@ -0,0 +1,7 @@ ++# Bazel configuration flags for rules_foreign_cc_docs ++ ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod ++build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.4.0.patch b/.github/docs-0.4.0.patch index 09877202..5da78c0c 100644 --- a/.github/docs-0.4.0.patch +++ b/.github/docs-0.4.0.patch @@ -11,3 +11,16 @@ index 2bdbf6e..418dd13 100644 release="\\$${RELEASE}" fi mkdir -p \\$${BUILD_WORKSPACE_DIRECTORY}/src +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.5.0.patch b/.github/docs-0.5.0.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.5.0.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.5.1.patch b/.github/docs-0.5.1.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.5.1.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.6.0.patch b/.github/docs-0.6.0.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.6.0.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.7.0.patch b/.github/docs-0.7.0.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.7.0.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.7.1.patch b/.github/docs-0.7.1.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.7.1.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.8.0.patch b/.github/docs-0.8.0.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.8.0.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/docs-0.9.0.patch b/.github/docs-0.9.0.patch new file mode 100644 index 00000000..cb7ec07a --- /dev/null +++ b/.github/docs-0.9.0.patch @@ -0,0 +1,13 @@ +diff --git a/docs/.bazelrc b/docs/.bazelrc +index dc6a3f7..9eb0697 100644 +--- a/docs/.bazelrc ++++ b/docs/.bazelrc +@@ -1,3 +1,7 @@ +-# Bazel configuration flags for rules_foregin_cc_docs ++# Bazel configuration flags for rules_foreign_cc_docs + ++# https://github.com/bazelbuild/stardoc/issues/112 ++common --incompatible_allow_tags_propagation ++ ++common --noenable_bzlmod + build --workspace_status_command=tools/workspace_status.sh diff --git a/.github/workflows/pages.yaml b/.github/workflows/pages.yaml index 5d87b5b4..81f51741 100644 --- a/.github/workflows/pages.yaml +++ b/.github/workflows/pages.yaml @@ -17,6 +17,9 @@ jobs: # Create a job for release include: - ref: main + - ref: "0.12.0" + - ref: "0.11.1" + - ref: "0.11.0" - ref: "0.10.1" - ref: "0.9.0" - ref: "0.8.0" @@ -41,10 +44,19 @@ jobs: if: ${{ matrix.ref == 'main' }} - name: Patch older branches run: | + ref="${{ matrix.ref }}" + + [[ "$ref" == "main" ]] && exit + + v_major="$(echo "$ref" | cut -d. -f1)" + v_minor="$(echo "$ref" | cut -d. -f2)" + v_patch="$(echo "$ref" | cut -d. -f3)" + + [[ $v_major -gt 10 ]] && exit + mkdir -p ${{ github.workspace }}/.github curl https://raw.githubusercontent.com/bazel-contrib/rules_foreign_cc/main/.github/docs-${{ matrix.ref }}.patch > ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch git apply ${{ github.workspace }}/.github/docs-${{ matrix.ref }}.patch - if: ${{ matrix.ref == '0.4.0' || matrix.ref == '0.3.0' || matrix.ref == '0.2.0' || matrix.ref == '0.1.0' }} - name: Install bazelisk run: | curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.9.0/bazelisk-linux-amd64" @@ -67,7 +79,7 @@ jobs: run: ${{ github.workspace }}/bin/mdbook build working-directory: ${{ github.workspace }}/docs - name: Save the newly built book - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: "${{ matrix.ref }}" path: ${{ github.workspace }}/docs/book @@ -78,7 +90,7 @@ jobs: if: ${{ matrix.ref == 'main' }} working-directory: ${{ github.workspace }}/docs/root - name: Save the newly built book - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: "${{ matrix.ref }}-root" path: ${{ github.workspace }}/docs/root/book diff --git a/docs/root/src/index.md b/docs/root/src/index.md index 8aeb0842..d09c8a5c 100644 --- a/docs/root/src/index.md +++ b/docs/root/src/index.md @@ -5,6 +5,9 @@ Rules for building C/C++ projects using foreign build systems (non Bazel) inside ## Versions - [main](main/index.md) +- [0.12.0](0.12.0/index.md) +- [0.11.1](0.11.1/index.md) +- [0.11.0](0.11.0/index.md) - [0.10.1](0.10.1/index.md) - [0.9.0](0.9.0/index.md) - [0.8.0](0.8.0/index.md) diff --git a/version.bzl b/version.bzl index bd76f04a..4971db67 100644 --- a/version.bzl +++ b/version.bzl @@ -1,3 +1,3 @@ """A module represeting the version of rules_foreign_cc""" -VERSION = "0.9.0" +VERSION = "0.12.0"