Skip to content

Commit

Permalink
GitHub Actions: refactor cross-compile-for-freebsd-on-ubuntu.yml
Browse files Browse the repository at this point in the history
clean code and add more FreeBSD versions

Signed-off-by: leleliu008 <[email protected]>
  • Loading branch information
leleliu008 committed Jul 31, 2024
1 parent b813695 commit f26d4c8
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/cross-compile-for-freebsd-on-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,19 @@ jobs:
strategy:
fail-fast: false
matrix:
freebsd-release-version: [13.2]
freebsd-release-version: ['14.1', '14.0', '13.3', '13.2', '13.1', '13.0']
# https://archive.freebsd.org/old-releases/amd64/

runs-on: ubuntu-latest

env:
CC: clang --target=amd64-unknown-freebsd --sysroot=${{ github.workspace }}/amd64-unknown-freebsd-sysroot
CFLAGS: -I${{ github.workspace }}/amd64-unknown-freebsd-3rdroot/include -v -fPIC
LDFLAGS: -L${{ github.workspace }}/amd64-unknown-freebsd-3rdroot/lib -Wl,-v
CFLAGS: -I${{ github.workspace }}/amd64-unknown-freebsd-3rdroot/include -fPIC
LDFLAGS: -L${{ github.workspace }}/amd64-unknown-freebsd-3rdroot/lib
PKG_CONFIG_PATH: ${{ github.workspace }}/amd64-unknown-freebsd-3rdroot/lib/pkgconfig

steps:
- uses: actions/checkout@v4
with:
repository: universal-ctags/ctags

- run: sudo apt-get -y update
- run: sudo apt-get -y install clang cmake make automake autoconf curl file
Expand Down

0 comments on commit f26d4c8

Please sign in to comment.