-
Notifications
You must be signed in to change notification settings - Fork 1
58 lines (51 loc) · 1.36 KB
/
ecbuild.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: ecbuild
# Controls when the workflow will run
on:
# Trigger the workflow on all pushes, except on tag creation
push:
branches:
- main
tags-ignore:
- "**"
# Trigger the workflow on all pull requests
pull_request: ~
# Allow workflow to be dispatched on demand
workflow_dispatch: ~
jobs:
ecbuild:
name: ecbuild
strategy:
fail-fast: false
matrix:
name:
- ubuntu-20.04
- ubuntu-22.04
- macos-12
include:
- name: ubuntu-20.04
os: ubuntu-20.04
- name: ubuntu-22.04
os: ubuntu-22.04
- name: macos-12
os: macos-12
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Checkout ecbuild Repository
uses: actions/checkout@v3
with:
repository: ecmwf/ecbuild
ref: develop
path: ${{ github.workspace }}/ecbuild
- name: Retrieve ecbuild SHA
working-directory: ${{ github.workspace }}/ecbuild
shell: bash -eux {0}
run: echo "ECBUILD_SHA=$(git log -1 --format='%H')" >> $GITHUB_ENV
- name: Build & Test
id: build-test
uses: ./
with:
workspace: ${{ github.workspace }}/ecbuild
repository: ecmwf/ecbuild
sha: ${{ env.ECBUILD_SHA }}