Skip to content

Improve "Dependabot Changelog" workflow #375

Improve "Dependabot Changelog" workflow

Improve "Dependabot Changelog" workflow #375

Workflow file for this run

name: Build CLI Binaries
on:
pull_request:
branches:
- "main"
types:
[closed]
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
name: Build CLI (${{ matrix.platform }})
if: ${{ github.event.pull_request.merged }}
strategy:
matrix:
platform: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.platform }}
steps:
- name: "Checkout code"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: "Install Node"
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 18
- name: "Install Rust"
uses: actions-rust-lang/setup-rust-toolchain@46268bd060767258de96ed93c1251119784f2ab6 # v1.16.1
with:
toolchain: stable
cache: false
rustflags: ""
- name: Install Go
uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
with:
go-version: 1.25.x
- name: "Install dependencies"
run: make mod-download
shell: bash
- name: "Create Build"
run: make build
shell: bash
- name: "Upload Build"
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: fastly-cli-build-${{ matrix.platform }}-${{ github.sha }}
path: fastly