-
Notifications
You must be signed in to change notification settings - Fork 3
56 lines (46 loc) · 1.23 KB
/
freebsd.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
45
46
47
48
49
50
51
52
53
54
55
56
# .github/workflows/cross.yaml
name: Build on a FreeBSD VM
on:
workflow_dispatch:
push:
branches: [ "test" ]
jobs:
build:
name: Build
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Machine Information
run: |
lscpu; free -h; df -h .
- name: System Information
run: |
date; uname -a; uptime; cat /etc/os-release; ls -C /boot || :
- name: Context Information
run: |
tty || :; id; printf %s\\n "$SHELL"; printf %s\\n "$PATH"; pwd
- name: Checkout
uses: actions/checkout@v4
- name: Build under FreeBSD
uses: vmactions/freebsd-vm@v1
with:
usesh: true
prepare: |
set -x
sysctl hw.physmem; df -h .
date; uname -a; freebsd-version
pkg install -y gmake
gmake --version
clang++ --version
id
run: |
set -x
tty || :; id; printf %s\\n "$SHELL"; printf %s\\n "$PATH"; pwd
gmake -j3 run GCC=clang GXX=clang++ CFLAGS='-Wno-psabi -O3 -fno-stack-protector -fcf-protection=none' MARCH=
- name: Upload Results
uses: actions/upload-artifact@v4
with:
name: build
path: build