Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 22 additions & 8 deletions .github/workflows/reusable-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- uses: actions/[email protected]
with:
fetch-depth: 0

- name: Generate Fern Go Code
run: |
npm install -g fern-api
Expand Down Expand Up @@ -51,6 +52,7 @@ jobs:
path: dist/
retention-days: 7

# Build AMD64 using standard runner (fast, no emulation needed)
prepare-linux-amd64:
name: Prepare Linux (amd64)
runs-on: ubuntu-latest
Expand All @@ -62,6 +64,7 @@ jobs:
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Login to ghcr.io registry
uses: docker/login-action@v3
with:
Expand Down Expand Up @@ -112,13 +115,16 @@ jobs:
brew install libpcap docker
echo "LD_LIBRARY_PATH=$(brew --prefix)/Cellar/libpcap/*/lib" >> $GITHUB_ENV
if: matrix.os == 'macos-latest'

- name: Set up QEMU
uses: docker/setup-qemu-action@v3
if: matrix.os == 'ubuntu-latest'

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
if: matrix.os == 'ubuntu-latest'

- name: Login to ghcr.io registry
uses: docker/login-action@v3
with:
Expand All @@ -131,17 +137,20 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Generate Fern Go Code
run: |
npm install -g fern-api
fern generate --group local
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- uses: goreleaser/goreleaser-action@v4
with:
distribution: goreleaser-pro
Expand All @@ -150,6 +159,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}

- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.os }}-dist
Expand All @@ -166,35 +176,34 @@ jobs:
env:
DOCKER_CLI_EXPERIMENTAL: "enabled"
steps:
- name: Maximize build space
uses: easimon/maximize-build-space@v10
with:
root-reserve-mb: 32768
remove-android: "true"
remove-docker-images: "true"
remove-dotnet: "true"
remove-haskell: "true"
- name: Install Dependences
run: sudo apt install libpcap-dev

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3

- name: Show available Docker Buildx platforms
run: echo ${{ steps.buildx.outputs.platforms }}

- name: Install cosign
uses: sigstore/[email protected]

- name: Install Syft
uses: anchore/sbom-action/[email protected]
with:
syft-version: v1.17.0

- name: Login to ghcr.io registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Login to docker.io registry
uses: docker/login-action@v3
with:
Expand All @@ -205,23 +214,28 @@ jobs:
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Generate Fern Go Code
run: |
npm install -g fern-api
fern generate --group local
env:
FERN_TOKEN: ${{ secrets.FERN_TOKEN }}

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
cache: true

- name: Download Artifacts
uses: actions/download-artifact@v4
with:
path: artifacts

- name: View Artifacts
run: ls -al artifacts artifacts/*

- name: Arrange Artifacts
run: |
mkdir -p output/build-linux_arm64/
Expand Down
2 changes: 1 addition & 1 deletion fern/fern.config.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"organization": "method-security",
"version": "3.20.0"
"version": "3.78.1"
}
6 changes: 3 additions & 3 deletions fern/generators.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ groups:
pypi-local:
generators:
- name: fernapi/fern-pydantic-model
version: 1.11.1
version: 1.11.2
output:
location: local-file-system
path: ../generated/python
smart-casing: false
pypi-test:
generators:
- name: fernapi/fern-pydantic-model
version: 1.11.1
version: 1.11.2
config:
package_name: methodtenable
output:
Expand All @@ -33,7 +33,7 @@ groups:
pypi:
generators:
- name: fernapi/fern-pydantic-model
version: 1.11.1
version: 1.11.2
config:
package_name: methodtenable
output:
Expand Down
Loading