This repository has been archived by the owner on Dec 4, 2024. It is now read-only.
forked from conan-io/conan-center-index
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (54 loc) · 1.89 KB
/
FreeBSD-center.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
59
60
# This is a basic workflow to help you get started with Actions
name: FreeBSD-center
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- '**'
workflow_dispatch: {}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
FreeBSD:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
regex: [0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z]
env:
CONAN_MAKE_PROGRAM: "gmake"
CC: clang
CXX: clang++
CONAN_SYSREQUIRES_MODE: enabled
MAKE: gmake
REMOTE_URL : ${{ secrets.REMOTE_URL }}
REMOTE_TOKEN : ${{ secrets.REMOTE_TOKEN }}
REMOTE_USER : ${{ secrets.REMOTE_USER }}
steps:
- uses: actions/checkout@v4
- name: Checkout CCI
uses: actions/checkout@v4
with:
repository: conan-io/conan-center-index
path: CCI
- name: list packages
run: ls CCI/recipes/${{ matrix.regex }}*/
- name: run
id: test
uses: vmactions/freebsd-vm@v1
with:
envs: 'CONAN_MAKE_PROGRAM CC CXX CONAN_SYSREQUIRES_MODE MAKE REMOTE_URL REMOTE_TOKEN REMOTE_USER'
usesh: true
prepare: pkg install -y cmake py39-pip py39-sqlite3 py39-distro python python3 sudo pkgconf gmake bash perl5 p5-XML-Parser git && ln -s /usr/local/bin/perl /usr/bin/perl
run: |
pip install conan pyyaml
conan remote add the_remote $REMOTE_URL
conan user -p $REMOTE_TOKEN -r the_remote $REMOTE_USER
conan remote remove conancenter
conan config set general.revisions_enabled=1
conan profile new ~/.conan/profiles/default --detect --force
python3 freebsd-center.py ${{ matrix.regex }}