Skip to content

Commit 486d5c8

Browse files
authored
Merge pull request #11 from alvinometric/master
Upload build artefacts on CI
2 parents 361253c + 25f7f48 commit 486d5c8

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,38 +4,42 @@ on:
44
branches:
55
- master
66
pull_request:
7-
87
jobs:
98
BuildLinux:
10-
runs-on: ubuntu-20.04 # test slightly older ubuntu.
9+
runs-on: ubuntu-24.04
1110
strategy:
1211
fail-fast: false
1312
matrix:
1413
compiler:
1514
- g++
1615
- clang++
17-
1816
name: Build ${{matrix.compiler}}
1917
steps:
2018
- name: Get the Source
21-
uses: actions/checkout@v3
22-
19+
uses: actions/checkout@v4
2320
- name: Configure shell
2421
run: |
2522
echo "CXX=${{ matrix.compiler }}" >> $GITHUB_ENV
2623
echo "CXXFLAGS=-Werror" >> $GITHUB_ENV
27-
2824
- name: Build
2925
run: |
3026
make -k
31-
27+
- name: Upload build artifacts
28+
uses: actions/upload-artifact@v4
29+
with:
30+
name: gcode-cli-linux-${{ matrix.compiler }}
31+
path: gcode-cli
3232
BuildMac:
3333
name: Build Mac
3434
runs-on: macos-latest
3535
steps:
3636
- name: Get the Source
37-
uses: actions/checkout@v3
38-
37+
uses: actions/checkout@v4
3938
- name: Build
4039
run: |
4140
make -k
41+
- name: Upload build artifacts
42+
uses: actions/upload-artifact@v4
43+
with:
44+
name: gcode-cli-mac
45+
path: gcode-cli

0 commit comments

Comments
 (0)