Compare commits
9 Commits
3e687d3c75
...
v0.1.0-rc.
| Author | SHA1 | Date | |
|---|---|---|---|
| db07a2daff | |||
| 166839eb8a | |||
| 5b55dbb64e | |||
| 1c5f73ceb8 | |||
| dfd585c939 | |||
| a0ddeefe76 | |||
| 3eeb41c1c9 | |||
| ed462e05e1 | |||
| 8d6aa89c5e |
@@ -1,19 +1,22 @@
|
||||
name: Build
|
||||
run-name: Build Quik.FreeType on Docker.
|
||||
run-name: Build ReFuel.FreeType on Docker.
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: stable
|
||||
tags:
|
||||
- '*'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: git.mixedup.dev/quik/docker-cross-compiler
|
||||
image: git.mixedup.dev/refuel/docker-cross-compiler
|
||||
env:
|
||||
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
|
||||
REFUEL_API_KEY: "${{secrets.REFUEL_API_KEY}}"
|
||||
NUGET_USER_NAME: "${{vars.NUGET_USER_NAME}}"
|
||||
NUGET_INDEX: "${{vars.NUGET_INDEX}}"
|
||||
volumes:
|
||||
- ${{ gitea.workspace }}:/home/quik/src
|
||||
- ${{ gitea.workspace }}:/home/refuel/src
|
||||
steps:
|
||||
- name: Check repository out.
|
||||
uses: actions/checkout@v3
|
||||
@@ -22,4 +25,4 @@ jobs:
|
||||
- name: Run Build Script
|
||||
run: "./build_native.sh"
|
||||
- name: Publish Package
|
||||
run: "Quik.Common/sh/publish.sh ."
|
||||
run: "./publish.sh ."
|
||||
|
||||
8
.gitmodules
vendored
8
.gitmodules
vendored
@@ -1,6 +1,6 @@
|
||||
[submodule "freetype"]
|
||||
path = freetype
|
||||
url = https://git.mixedup.dev/QUIK/freetype.git
|
||||
[submodule "Quik.Common"]
|
||||
path = Quik.Common
|
||||
url = https://git.mixedup.dev/QUIK/Quik.Common.git
|
||||
url = https://git.mixedup.dev/ReFuel/freetype.git
|
||||
[submodule "docker-cross-compiler"]
|
||||
path = docker-cross-compiler
|
||||
url = https://git.mixedup.dev/ReFuel/docker-cross-compiler
|
||||
|
||||
2
FT.cs
2
FT.cs
@@ -2,7 +2,7 @@ using System;
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
public static class FT
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
public enum FTError : int
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
[Flags]
|
||||
public enum FTLoadFlags
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
public enum FTRenderMode
|
||||
{
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
[Flags]
|
||||
public enum FaceFlag : int
|
||||
|
||||
Submodule Quik.Common deleted from fdfac9d951
@@ -10,8 +10,8 @@
|
||||
<PropertyGroup>
|
||||
<!-- Nuget Properties. -->
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<PackageId>Quik.FreeType</PackageId>
|
||||
<Version>1.1.0</Version>
|
||||
<PackageId>ReFuel.FreeType</PackageId>
|
||||
<Version>0.1.0-rc.1</Version>
|
||||
<Authors>FreeType Authors, H. Utku Maden</Authors>
|
||||
<Description>
|
||||
A C# wrapper for the FreeType font loading library.
|
||||
@@ -1,25 +1,22 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.5.002.0
|
||||
VisualStudioVersion = 17.0.31903.59
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Quik.FreeType", "Quik.FreeType.csproj", "{A19CFEF1-19F1-41DD-A784-29AEE6072315}"
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ReFuel.FreeType", "ReFuel.FreeType.csproj", "{983377DF-BE92-42A5-A1B7-C2E1D5F3AAF2}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{A19CFEF1-19F1-41DD-A784-29AEE6072315}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{A19CFEF1-19F1-41DD-A784-29AEE6072315}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{A19CFEF1-19F1-41DD-A784-29AEE6072315}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A19CFEF1-19F1-41DD-A784-29AEE6072315}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {F64EFC25-A7C1-4A63-8068-D5626B24871F}
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{983377DF-BE92-42A5-A1B7-C2E1D5F3AAF2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{983377DF-BE92-42A5-A1B7-C2E1D5F3AAF2}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{983377DF-BE92-42A5-A1B7-C2E1D5F3AAF2}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{983377DF-BE92-42A5-A1B7-C2E1D5F3AAF2}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
|
||||
// Disable unused warnings for native types.
|
||||
#pragma warning disable CS0649
|
||||
|
||||
namespace Quik.FreeType
|
||||
namespace ReFuel.FreeType
|
||||
{
|
||||
public struct FTLibrary
|
||||
{
|
||||
|
||||
@@ -1,11 +1,16 @@
|
||||
#!/bin/bash
|
||||
cd $(dirname "$0")
|
||||
|
||||
export CMAKE_DIR="$PWD/Quik.Common/cmake"
|
||||
export CMAKE_DIR="$PWD/docker-cross-compiler/cmake"
|
||||
export NOINSTALL=1
|
||||
export QUIK_ADDITIONAL_CMAKE="-D BUILD_SHARED_LIBS=true -D NO_SONAME=true"
|
||||
export REFUEL_ADDITIONAL_CMAKE="-D BUILD_SHARED_LIBS=true -D NO_SONAME=true"
|
||||
|
||||
./Quik.Common/sh/quik_build_native.sh "$PWD/freetype"
|
||||
# Clang Builds
|
||||
./docker-cross-compiler/sh/build_native.sh "$PWD" "osx-arm64 osx-x64"
|
||||
|
||||
# GCC Builds
|
||||
export REFUEL_ADDITIONAL_CMAKE="$REFUEL_ADDITIONAL_CMAKE -D CMAKE_CXX_FLAGS=\"-static-libgcc -static-libstdc++ -fno-exceptions\""
|
||||
./docker-cross-compiler/sh/build_native.sh "$PWD" "linux-arm linux-arm64 linux-x64 win-x64 win-x86"
|
||||
|
||||
# Copy out natives from their respective directories into runtimes
|
||||
mkdir -p \
|
||||
|
||||
1
docker-cross-compiler
Submodule
1
docker-cross-compiler
Submodule
Submodule docker-cross-compiler added at 518969e2c9
27
publish.sh
Executable file
27
publish.sh
Executable file
@@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd $(dirname "$0")
|
||||
|
||||
if [ -z "$REFUEL_API_KEY" ]
|
||||
then
|
||||
echo "Please define REFUEL_API_KEY"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$NUGET_USER_NAME" ]
|
||||
then
|
||||
echo "Please define NUGET_USER_NAME"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ -z "$NUGET_INDEX" ]
|
||||
then
|
||||
echo "Please define NUGET_INDEX"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
dotnet nuget add source \
|
||||
-n ReFuel -u "$NUGET_USER_NAME" -p "$REFUEL_API_KEY" \
|
||||
--store-password-in-clear-text \
|
||||
"$NUGET_INDEX"
|
||||
dotnet nuget push -s ReFuel bin/*/*.nupkg
|
||||
Reference in New Issue
Block a user