Skip to content

Commit cedf419

Browse files
committed
Update CI
1 parent a8e4f77 commit cedf419

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,12 @@ jobs:
3333
LDFLAGS: -static-libgcc -static-libstdc++
3434
run: |
3535
make -j $(nproc)
36+
- name: Set sha8
37+
id: slug
38+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
3639
- uses: actions/upload-artifact@v2
3740
with:
38-
name: linux arm64
41+
name: ${{ github.event.repository.name }}-linux-arm64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
3942
path: |
4043
bin/*
4144
@@ -61,9 +64,12 @@ jobs:
6164
LDFLAGS: -static-libgcc -static-libstdc++
6265
run: |
6366
make -j $(nproc)
67+
- name: Set sha8
68+
id: slug
69+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
6470
- uses: actions/upload-artifact@v2
6571
with:
66-
name: linux armhf
72+
name: ${{ github.event.repository.name }}-linux-armhf-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
6773
path: |
6874
bin/*
6975
@@ -81,9 +87,12 @@ jobs:
8187
LDFLAGS: -static-libgcc -static-libstdc++
8288
run: |
8389
make -j $(nproc)
90+
- name: Set sha8
91+
id: slug
92+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
8493
- uses: actions/upload-artifact@v2
8594
with:
86-
name: linux x64
95+
name: ${{ github.event.repository.name }}-linux-x64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
8796
path: |
8897
bin/*
8998
@@ -105,9 +114,12 @@ jobs:
105114
run: |
106115
make NOOPT=true -j $(sysctl -n hw.logicalcpu) && \
107116
./dpf/utils/package-osx-bundles.sh
117+
- name: Set sha8
118+
id: slug
119+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
108120
- uses: actions/upload-artifact@v2
109121
with:
110-
name: macOS universal
122+
name: ${{ github.event.repository.name }}-macOS-universal-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
111123
path: |
112124
*-macOS.pkg
113125
bin/*
@@ -136,9 +148,12 @@ jobs:
136148
WINEDEBUG: "-all"
137149
run: |
138150
make -j $(nproc)
151+
- name: Set sha8
152+
id: slug
153+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
139154
- uses: actions/upload-artifact@v2
140155
with:
141-
name: win32
156+
name: ${{ github.event.repository.name }}-win32-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
142157
path: |
143158
bin/*
144159
!bin/*-ladspa.dll
@@ -162,9 +177,12 @@ jobs:
162177
WINEDEBUG: "-all"
163178
run: |
164179
make -j $(nproc)
180+
- name: Set sha8
181+
id: slug
182+
run: echo "::set-output name=sha8::$(echo ${{ github.sha }} | cut -c1-8)"
165183
- uses: actions/upload-artifact@v2
166184
with:
167-
name: win64
185+
name: ${{ github.event.repository.name }}-win64-${{ github.event.pull_request.number || steps.slug.outputs.sha8 }}
168186
path: |
169187
bin/*
170188
!bin/*-ladspa.dll

0 commit comments

Comments
 (0)