Skip to content

Commit 647f506

Browse files
committed
chore(ci): separate jobs
1 parent 99ef030 commit 647f506

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,13 @@
11
on: push
22

33
jobs:
4-
build:
4+
image:
55
runs-on: ubuntu-latest
66
steps:
77
- uses: actions/checkout@v2
88
- name: Set up Docker Buildx
99
id: buildx
1010
uses: docker/setup-buildx-action@master
11-
- name: Cache Docker layers
12-
uses: actions/cache@v2
13-
with:
14-
path: /tmp/.buildx-cache
15-
key: ${{ runner.os }}-buildx-${{ github.sha }}
16-
restore-keys: |
17-
${{ runner.os }}-buildx-
1811
- name: Login to GitHub Container Registry
1912
uses: docker/login-action@v1
2013
with:
@@ -28,9 +21,13 @@ jobs:
2821
builder: ${{ steps.buildx.outputs.name }}
2922
push: true
3023
tags: mpsq/emacs-native-comp-wayland-builder:latest
31-
cache-from: type=local,src=/tmp/.buildx-cache
32-
cache-to: type=local,dest=/tmp/.buildx-cache
24+
25+
artifact:
26+
runs-on: ubuntu-latest
27+
needs: [image]
28+
container: mpsq/emacs-native-comp-wayland-builder:latest
29+
steps:
3330
- uses: actions/upload-artifact@v2
3431
with:
3532
name: emacs-native-comp-git-enhanced
36-
path: /home/runner/work/_temp/_github_workflow/emacs-native-comp-git-enhanced*
33+
path: /home/pcr/emacs-native-comp-git-enhanced*

0 commit comments

Comments
 (0)