-
Notifications
You must be signed in to change notification settings - Fork 4
45 lines (43 loc) · 1.42 KB
/
freebsd.yml
File metadata and controls
45 lines (43 loc) · 1.42 KB
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
name: freebsd
on:
schedule:
# run at CST 1:00, 9:00, 17:00
- cron: '0 1,9,17 * * *'
# Allows to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-erofs-utils:
runs-on: ubuntu-latest
strategy:
matrix:
suffix: ["", "_mt"]
arch: [x86_64, aarch64]
env:
EROFSUTILS_SOURCE_URL: ${{ vars.EROFSUTILS_SOURCE_URL || 'https://github.com/erofs/erofs-utils' }}
steps:
- uses: actions/checkout@v6
- name: Build erofs-utils in FreeBSD
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'EROFSUTILS_SOURCE_URL'
usesh: true
arch: ${{ matrix.arch }}
run: |
pkg install -y git pkgconf automake autoconf libtool libuuid liblz4 zstd fusefs-libs
git clone $EROFSUTILS_SOURCE_URL -b experimental erofs-utils
cd erofs-utils
mkdir output
MT="dis";[ "x${{ matrix.suffix }}" = "x_mt" ] && MT="en"
./autogen.sh && ./configure --enable-debug --enable-werror \
--with-uuid --enable-fuse \
--enable-lz4 --enable-lzma --with-libzstd \
--${MT}able-multithreading \
--prefix=$(pwd)/output && \
make && make install
- name: Upload erofs-utils
uses: actions/upload-artifact@v4
with:
name: erofs-utils${{ matrix.suffix }}.${{ matrix.arch }}
path: |
erofs-utils/output