Compare commits

...

15 Commits

Author SHA1 Message Date
ab1cfe9243 Use unencrypted storage for the key because Nuget is nuget.
All checks were successful
Build / build (push) Successful in 1m2s
2024-03-23 11:36:16 +03:00
2883c7faf8 Chnage build script.
Some checks failed
Build / build (push) Failing after 1m4s
2024-03-23 10:59:23 +03:00
07f6da8ebe This is getting out of hand.
Some checks failed
Build / build (push) Failing after 43s
2024-03-21 18:39:44 +03:00
029375399f Yet another attempt to fix CI builds.
Some checks failed
Build / build (push) Failing after 44s
2024-03-21 18:38:27 +03:00
702083e961 YEss another useless push.
Some checks failed
Build / build (push) Failing after 51s
2024-03-21 18:24:22 +03:00
1ff1603d00 List stuff.
Some checks failed
Build / build (push) Failing after 44s
2024-03-21 18:17:50 +03:00
c41ba068a6 Another silly push.
Some checks failed
Build / build (push) Failing after 41s
2024-03-21 18:16:21 +03:00
33000e5b54 List all files in home directory of the runner.
Some checks failed
Build / build (push) Failing after 52s
2024-03-21 18:13:33 +03:00
4c87a7da1c Merge branch 'stable' of https://git.mixedup.dev/QUIK/Quik.StbImage into stable
Some checks failed
Build / build (push) Failing after 42s
2024-03-21 18:11:30 +03:00
e531ac6d15 Change build scripts slightly to maybe fix CI? 2024-03-21 18:10:55 +03:00
ed99bf210b Update .gitea/workflows/build.yaml
Some checks failed
Build / build (push) Failing after 44s
2024-03-19 21:19:55 +01:00
0d3b1760e3 Fix executable bit of higher repository.
Some checks failed
Build / build (push) Failing after 43s
2024-03-19 22:57:40 +03:00
1b0fc116f2 Merge branch 'stable' of https://git.mixedup.dev/QUIK/Quik.StbImage into stable
Some checks failed
Build / build (push) Failing after 41s
2024-03-19 22:50:05 +03:00
f60611e565 Add executable bit to shell scripts. 2024-03-19 22:49:57 +03:00
6e670cb57c Where did my files go?
Some checks failed
Build / build (push) Failing after 42s
2024-03-19 20:46:38 +01:00
7 changed files with 40 additions and 15 deletions

View File

@ -8,17 +8,18 @@ on:
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
env: container:
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}" image: git.mixedup.dev/quik/docker-cross-compiler
env:
QUIK_API_KEY: "${{secrets.QUIK_API_KEY}}"
volumes:
- ${{ gitea.workspace }}:/home/quik/src
steps: steps:
- name: Update Package Repository.
run: apt update -y
- name: Gather dependencies.
run: apt install -y docker.io docker-compose
- name: Check repository out. - name: Check repository out.
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
submodules: recursive
- name: Run Build Script - name: Run Build Script
run: docker-compose run build run: "./build_native.sh"
working-directory: ${{ gitea.workspace }} - name: Publish Package
- name: Upload NuGet Package run: "./publish.sh"
run: "bash ${{ gitea.workspace }}/publish.sh"

2
.gitignore vendored
View File

@ -2,3 +2,5 @@
**/obj **/obj
**/out **/out
**/runtimes **/runtimes
**/.vs*
**/.atom

@ -1 +1 @@
Subproject commit ebfc8a694615a8a6c9d35652279a9748ff43db3d Subproject commit d9c98b5cdc37b2ba1855c8fa9ce0fac8266b0f89

11
build_ci_cd.sh Normal file
View File

@ -0,0 +1,11 @@
#!/bin/bash
cd $(dirname "$0")
if [ -z "$QUIK_API_KEY" ]
then
echo "Please define QUIK_API_KEY"
exit 1
fi
pwd
docker-compose run build && docker-compose run publish

2
build_native.sh Normal file → Executable file
View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash
cd $(dirname "$0") cd $(dirname "$0")
Quik.Common/sh/quik_build_native.sh . ./Quik.Common/sh/quik_build_native.sh .
dotnet build dotnet build

View File

@ -5,4 +5,12 @@ services:
image: git.mixedup.dev/quik/docker-cross-compiler image: git.mixedup.dev/quik/docker-cross-compiler
command: "/home/quik/src/build_native.sh" command: "/home/quik/src/build_native.sh"
volumes: volumes:
- .:/home/quik/src - .:/home/quik/src
publish:
image: git.mixedup.dev/quik/docker-cross-compiler
command: "/home/quik/src/publish.sh"
environment:
QUIK_API_KEY: ${QUIK_API_KEY}
volumes:
- .:/home/quik/src

7
publish.sh Normal file → Executable file
View File

@ -7,5 +7,8 @@ then
exit 1 exit 1
fi fi
dotnet nuget add source -n QUIK -u themixedupstuff -p "$QUIK_API_KEY" https://git.mixedup.dev/api/packages/QUIK/nuget/index.json dotnet nuget add source \
dotnet nuget push -s QUIK -n QUIK -u themixedupstuff -p "$QUIK_API_KEY" \
--store-password-in-clear-text \
https://git.mixedup.dev/api/packages/QUIK/nuget/index.json
dotnet nuget push -s QUIK bin/*/*.nupkg