-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (41 loc) · 1.26 KB
/
test.yaml
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
# SPDX-FileCopyrightText: The vmnet-helper authors
# SPDX-License-Identifier: Apache-2.0
---
name: Test
on:
pull_request:
push:
branches:
- main
jobs:
build:
name: Build
strategy:
fail-fast: false
matrix:
platform:
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for--private-repositories
- macos-13 # amd64
- macos-15 # arm64
runs-on: ${{ matrix.platform }}
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Ensure tag
# Archving requires a tag, but we checkout only the last commit.
run: git describe --tags 2>/dev/null || git tag devel
- name: Install requirements
run: brew install meson diffoscope
- name: Build
run: |
meson setup build
meson compile -C build
./archive.sh build
- name: Test reproducibility
run: |
meson setup repro
meson compile -C repro
./archive.sh repro
diffoscope build/vmnet-helper-*.tar.gz repro/vmnet-helper-*.tar.gz
- name: List shared interfaces
run: build/vmnet-helper --list-shared-interfaces