Debian Codegraph @

.github/workflows/build-dev.yaml

raw symbols SCIP
1 on:
2 push:
3 branches:
4 - master
5 - main
6 name: Build Dev
7 jobs:
8 publish:
9 strategy:
10 matrix:
11 os:
12 - linux
13 - darwin
14 - windows
15 arch:
16 - amd64
17 - 386
18 - arm64
19 - arm
20 include:
21 - os: linux
22 arch: amd64
23 artifact_name: dasel_linux_amd64
24 test_version: true
25 - os: linux
26 arch: 386
27 artifact_name: dasel_linux_386
28 test_version: false
29 - os: darwin
30 arch: amd64
31 artifact_name: dasel_darwin_amd64
32 test_version: false
33 - os: darwin
34 arch: arm64
35 artifact_name: dasel_darwin_arm64
36 test_version: false
37 - os: windows
38 arch: amd64
39 artifact_name: dasel_windows_amd64.exe
40 test_version: false
41 - os: windows
42 arch: 386
43 artifact_name: dasel_windows_386.exe
44 test_version: false
45 - os: linux
46 arch: arm64
47 artifact_name: dasel_linux_arm64
48 test_version: false
49 - os: linux
50 arch: arm
51 artifact_name: dasel_linux_arm32
52 test_version: false
53 exclude:
54 - os: darwin
55 arch: 386
56 - os: windows
57 arch: arm64
58 - os: windows
59 arch: arm
60 - os: darwin
61 arch: arm
62 name: Dev build ${{ matrix.os }} ${{ matrix.arch }}
63 runs-on: ubuntu-latest
64 steps:
65 - uses: actions/checkout@v6
66 - uses: actions/setup-go@v6
67 with:
68 go-version: '^1.25.0' # The Go version to download (if necessary) and use.
69 - name: Set env
70 run: echo RELEASE_VERSION=development >> $GITHUB_ENV
71 - name: Build
72 run: GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} CGO_ENABLED=0 go build -o target/release/${{ matrix.artifact_name }} -ldflags="-w -s -X 'github.com/tomwright/dasel/v3/internal.Version=${{ env.RELEASE_VERSION }}'" ./cmd/dasel
73 - name: Test version
74 if: matrix.test_version == true
75 run: ./target/release/${{ matrix.artifact_name }} version