Skip to content

Commit b74d03c

Browse files
committed
Update CI workflows
* Bump action versions. * Remove incorrect test job.
1 parent 81f0727 commit b74d03c

File tree

1 file changed

+6
-26
lines changed

1 file changed

+6
-26
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,18 @@
1-
name: Ubuntu
1+
name: build
22

3-
on: [push, pull_request]
3+
on:
4+
pull_request:
5+
branches:
6+
- master
47

58
jobs:
69
build:
710
runs-on: ubuntu-latest
811
steps:
9-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1013

1114
- name: Install dependencies
1215
run: sudo apt-get install -y build-essential libcurl4-openssl-dev libarchive-dev
1316

1417
- name: Compile
1518
run: make
16-
17-
- uses: actions/upload-artifact@v3
18-
with:
19-
name: tldr
20-
path: ./tldr
21-
22-
test:
23-
runs-on: ubuntu-latest
24-
needs: build
25-
steps:
26-
- uses: actions/download-artifact@v3
27-
with:
28-
name: tldr
29-
path: .
30-
31-
- name: Set file permissions
32-
run: chmod 755 ./tldr
33-
34-
- name: Fetch pages
35-
run: ./tldr -u
36-
37-
- name: Display page
38-
run: ./tldr cd

0 commit comments

Comments
 (0)