mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 04:51:26 +12:00
[CI] FreeBSD build (#17293)
Some checks failed
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Mac Intel (push) Waiting to run
Build RPCS3 / RPCS3 Mac Apple Silicon (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Generate Translation Template / Generate Translation Template (push) Failing after 1m1s
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been skipped
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been skipped
Build RPCS3 / RPCS3 FreeBSD (push) Has been skipped
Some checks failed
Build RPCS3 / RPCS3 Linux ubuntu-24.04-arm clang (push) Waiting to run
Build RPCS3 / RPCS3 Mac Intel (push) Waiting to run
Build RPCS3 / RPCS3 Mac Apple Silicon (push) Waiting to run
Build RPCS3 / RPCS3 Windows (push) Waiting to run
Generate Translation Template / Generate Translation Template (push) Failing after 1m1s
Build RPCS3 / RPCS3 Linux ubuntu-24.04 gcc (push) Has been skipped
Build RPCS3 / RPCS3 Linux ubuntu-24.04 clang (push) Has been skipped
Build RPCS3 / RPCS3 FreeBSD (push) Has been skipped
Build FreeBSD on Github Actions
This commit is contained in:
parent
5514d7c3d8
commit
2b7161208e
10 changed files with 41 additions and 65 deletions
|
@ -3,6 +3,7 @@
|
||||||
# Pull all the submodules except llvm, opencv, libpng, sdl and curl
|
# Pull all the submodules except llvm, opencv, libpng, sdl and curl
|
||||||
# Note: Tried to use git submodule status, but it takes over 20 seconds
|
# Note: Tried to use git submodule status, but it takes over 20 seconds
|
||||||
# shellcheck disable=SC2046
|
# shellcheck disable=SC2046
|
||||||
|
git config --global --add safe.directory .
|
||||||
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ && !/opencv/ && !/libpng/ && !/libsdl-org/ && !/curl/ { print $3 }' .gitmodules)
|
git submodule -q update --init --depth 1 $(awk '/path/ && !/llvm/ && !/opencv/ && !/libpng/ && !/libsdl-org/ && !/curl/ { print $3 }' .gitmodules)
|
||||||
|
|
||||||
CONFIGURE_ARGS="
|
CONFIGURE_ARGS="
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# Export variables for later stages of the Azure pipeline
|
|
||||||
# Values done in this manner will appear as environment variables
|
|
||||||
# in later stages.
|
|
||||||
|
|
||||||
# From pure-sh-bible
|
|
||||||
# Setting 'IFS' tells 'read' where to split the string.
|
|
||||||
while IFS='=' read -r key val; do
|
|
||||||
# Skip over lines containing comments.
|
|
||||||
[ "${key##\#*}" ] || continue
|
|
||||||
echo "##vso[task.setvariable variable=$key]$val"
|
|
||||||
done < ".ci/ci-vars.env"
|
|
|
@ -1,13 +0,0 @@
|
||||||
#!/bin/sh -e
|
|
||||||
|
|
||||||
# Export variables for later stages of the Cirrus pipeline
|
|
||||||
# Values done in this manner will appear as environment variables
|
|
||||||
# in later stages.
|
|
||||||
|
|
||||||
# From pure-sh-bible
|
|
||||||
# Setting 'IFS' tells 'read' where to split the string.
|
|
||||||
while IFS='=' read -r key val; do
|
|
||||||
# Skip over lines containing comments.
|
|
||||||
[ "${key##\#*}" ] || continue
|
|
||||||
export "$key"="$val"
|
|
||||||
done < ".ci/ci-vars.env"
|
|
26
.cirrus.yml
26
.cirrus.yml
|
@ -1,26 +0,0 @@
|
||||||
env:
|
|
||||||
CIRRUS_CLONE_DEPTH: 0 # Unshallow clone to obtain proper GIT_VERSION
|
|
||||||
BUILD_REPOSITORY_NAME: $CIRRUS_REPO_FULL_NAME
|
|
||||||
SYSTEM_PULLREQUEST_SOURCEBRANCH: $CIRRUS_BRANCH
|
|
||||||
SYSTEM_PULLREQUEST_PULLREQUESTID: $CIRRUS_PR
|
|
||||||
BUILD_SOURCEVERSION: $CIRRUS_CHANGE_IN_REPO
|
|
||||||
BUILD_SOURCEBRANCHNAME: $CIRRUS_BRANCH
|
|
||||||
RPCS3_TOKEN: ENCRYPTED[100ebb8e3552bf2021d0ef55dccda3e58d27be5b6cab0b0b92843ef490195d3c4edaefa087e4a3b425caa6392300b9b1]
|
|
||||||
QT_VER_MAIN: '6'
|
|
||||||
QT_VER: '6.9.1'
|
|
||||||
LLVM_COMPILER_VER: '19'
|
|
||||||
|
|
||||||
freebsd_task:
|
|
||||||
matrix:
|
|
||||||
- name: Cirrus FreeBSD
|
|
||||||
freebsd_instance:
|
|
||||||
image_family: freebsd-13-5
|
|
||||||
cpu: 8
|
|
||||||
memory: 8G
|
|
||||||
env:
|
|
||||||
CCACHE_MAXSIZE: 300M # 3x clean build, rounded
|
|
||||||
CCACHE_DIR: /tmp/ccache_dir
|
|
||||||
ccache_cache:
|
|
||||||
folder: /tmp/ccache_dir
|
|
||||||
install_script: "sh -ex ./.ci/install-freebsd.sh"
|
|
||||||
script: "./.ci/build-freebsd.sh"
|
|
38
.github/workflows/rpcs3.yml
vendored
38
.github/workflows/rpcs3.yml
vendored
|
@ -319,3 +319,41 @@ jobs:
|
||||||
with:
|
with:
|
||||||
path: ${{ env.DEPS_CACHE_DIR }}
|
path: ${{ env.DEPS_CACHE_DIR }}
|
||||||
key: ${{ steps.restore-dependencies-cache.outputs.cache-primary-key }}
|
key: ${{ steps.restore-dependencies-cache.outputs.cache-primary-key }}
|
||||||
|
|
||||||
|
FreeBSD_Build:
|
||||||
|
# Only run push event on master branch of main repo, but run all PRs
|
||||||
|
if: github.event_name != 'push' || (github.repository == 'RPCS3/rpcs3' && github.ref_name == 'master')
|
||||||
|
name: RPCS3 FreeBSD
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CCACHE_DIR: ${{ github.workspace }}/ccache
|
||||||
|
QT_VER_MAIN: '6'
|
||||||
|
LLVM_COMPILER_VER: '19'
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@main
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
|
- name: Restore Build Ccache
|
||||||
|
uses: actions/cache/restore@main
|
||||||
|
id: restore-build-ccache
|
||||||
|
with:
|
||||||
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
key: FreeBSD-ccache-${{github.run_id}}
|
||||||
|
restore-keys: FreeBSD-ccache-
|
||||||
|
|
||||||
|
- name: FreeBSD build
|
||||||
|
id: root
|
||||||
|
uses: vmactions/freebsd-vm@v1
|
||||||
|
with:
|
||||||
|
envs: 'QT_VER_MAIN LLVM_COMPILER_VER CCACHE_DIR'
|
||||||
|
usesh: true
|
||||||
|
run: .ci/install-freebsd.sh && .ci/build-freebsd.sh
|
||||||
|
|
||||||
|
- name: Save Build Ccache
|
||||||
|
if: github.ref == 'refs/heads/master'
|
||||||
|
uses: actions/cache/save@main
|
||||||
|
with:
|
||||||
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
key: ${{ steps.restore-build-ccache.outputs.cache-primary-key }}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
RPCS3
|
RPCS3
|
||||||
=====
|
=====
|
||||||
|
|
||||||
[](https://cirrus-ci.com/github/RPCS3/rpcs3)
|
|
||||||
[](https://github.com/RPCS3/rpcs3/actions/workflows/rpcs3.yml)
|
[](https://github.com/RPCS3/rpcs3/actions/workflows/rpcs3.yml)
|
||||||
[](https://discord.gg/rpcs3)
|
[](https://discord.gg/rpcs3)
|
||||||
|
|
||||||
|
|
|
@ -112,7 +112,6 @@ if defined BUILD_SOURCEBRANCHNAME (
|
||||||
rem // BUILD_REPOSITORY_NAME will look like "RPCS3/rpcs3"
|
rem // BUILD_REPOSITORY_NAME will look like "RPCS3/rpcs3"
|
||||||
rem // SYSTEM_PULLREQUEST_SOURCEBRANCH will look like "master"
|
rem // SYSTEM_PULLREQUEST_SOURCEBRANCH will look like "master"
|
||||||
rem // BUILD_SOURCEBRANCHNAME will look like "master"
|
rem // BUILD_SOURCEBRANCHNAME will look like "master"
|
||||||
rem // See https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables
|
|
||||||
set GIT_FULL_BRANCH=%BUILD_REPOSITORY_NAME%/%BUILD_SOURCEBRANCHNAME%
|
set GIT_FULL_BRANCH=%BUILD_REPOSITORY_NAME%/%BUILD_SOURCEBRANCHNAME%
|
||||||
echo GIT_FULL_BRANCH: !GIT_FULL_BRANCH!
|
echo GIT_FULL_BRANCH: !GIT_FULL_BRANCH!
|
||||||
|
|
||||||
|
|
|
@ -38,10 +38,9 @@ function(gen_git_version rpcs3_src_dir)
|
||||||
set(GIT_VERSION_FILE "${rpcs3_src_dir}/git-version.h")
|
set(GIT_VERSION_FILE "${rpcs3_src_dir}/git-version.h")
|
||||||
set(GIT_VERSION_UPDATE "1")
|
set(GIT_VERSION_UPDATE "1")
|
||||||
|
|
||||||
# These environment variables are defined by Azure pipelines
|
# These environment variables are defined by CI
|
||||||
# BUILD_REPOSITORY_NAME will look like "RPCS3/rpcs3"
|
# BUILD_REPOSITORY_NAME will look like "RPCS3/rpcs3"
|
||||||
# BUILD_SOURCEBRANCHNAME will look like "master"
|
# BUILD_SOURCEBRANCHNAME will look like "master"
|
||||||
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables
|
|
||||||
if (DEFINED ENV{BUILD_REPOSITORY_NAME} AND NOT "$ENV{BUILD_REPOSITORY_NAME}" STREQUAL "")
|
if (DEFINED ENV{BUILD_REPOSITORY_NAME} AND NOT "$ENV{BUILD_REPOSITORY_NAME}" STREQUAL "")
|
||||||
set(RPCS3_GIT_FULL_BRANCH "$ENV{BUILD_REPOSITORY_NAME}/$ENV{BUILD_SOURCEBRANCHNAME}")
|
set(RPCS3_GIT_FULL_BRANCH "$ENV{BUILD_REPOSITORY_NAME}/$ENV{BUILD_SOURCEBRANCHNAME}")
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
<Project DefaultTargets="Build" ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||||
<ItemGroup Label="ProjectConfigurations">
|
<ItemGroup Label="ProjectConfigurations">
|
||||||
<ProjectConfiguration Include="Release|x64">
|
<ProjectConfiguration Include="Release|x64">
|
||||||
|
@ -2118,7 +2118,6 @@
|
||||||
</CustomBuild>
|
</CustomBuild>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Include="..\.cirrus.yml" />
|
|
||||||
<None Include="..\.ci\build-freebsd.sh" />
|
<None Include="..\.ci\build-freebsd.sh" />
|
||||||
<None Include="..\.ci\build-linux-aarch64.sh" />
|
<None Include="..\.ci\build-linux-aarch64.sh" />
|
||||||
<None Include="..\.ci\build-linux.sh" />
|
<None Include="..\.ci\build-linux.sh" />
|
||||||
|
@ -2130,7 +2129,6 @@
|
||||||
<None Include="..\.ci\deploy-mac.sh" />
|
<None Include="..\.ci\deploy-mac.sh" />
|
||||||
<None Include="..\.ci\deploy-windows.sh" />
|
<None Include="..\.ci\deploy-windows.sh" />
|
||||||
<None Include="..\.ci\docker.env" />
|
<None Include="..\.ci\docker.env" />
|
||||||
<None Include="..\.ci\export-cirrus-vars.sh" />
|
|
||||||
<None Include="..\.ci\get_keys-windows.sh" />
|
<None Include="..\.ci\get_keys-windows.sh" />
|
||||||
<None Include="..\.ci\github-upload.sh" />
|
<None Include="..\.ci\github-upload.sh" />
|
||||||
<None Include="..\.ci\install-freebsd.sh" />
|
<None Include="..\.ci\install-freebsd.sh" />
|
||||||
|
|
|
@ -1806,9 +1806,6 @@
|
||||||
<None Include="..\Utilities\git-version-gen.cmd">
|
<None Include="..\Utilities\git-version-gen.cmd">
|
||||||
<Filter>Scripts</Filter>
|
<Filter>Scripts</Filter>
|
||||||
</None>
|
</None>
|
||||||
<None Include="..\.cirrus.yml">
|
|
||||||
<Filter>CI</Filter>
|
|
||||||
</None>
|
|
||||||
<None Include="..\.ci\build-freebsd.sh">
|
<None Include="..\.ci\build-freebsd.sh">
|
||||||
<Filter>CI</Filter>
|
<Filter>CI</Filter>
|
||||||
</None>
|
</None>
|
||||||
|
@ -1827,9 +1824,6 @@
|
||||||
<None Include="..\.ci\deploy-windows.sh">
|
<None Include="..\.ci\deploy-windows.sh">
|
||||||
<Filter>CI</Filter>
|
<Filter>CI</Filter>
|
||||||
</None>
|
</None>
|
||||||
<None Include="..\.ci\export-cirrus-vars.sh">
|
|
||||||
<Filter>CI</Filter>
|
|
||||||
</None>
|
|
||||||
<None Include="..\.ci\get_keys-windows.sh">
|
<None Include="..\.ci\get_keys-windows.sh">
|
||||||
<Filter>CI</Filter>
|
<Filter>CI</Filter>
|
||||||
</None>
|
</None>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue