Compare commits
15 Commits
8a0f1ba704
...
ab1cfe9243
Author | SHA1 | Date | |
---|---|---|---|
ab1cfe9243 | |||
2883c7faf8 | |||
07f6da8ebe | |||
029375399f | |||
702083e961 | |||
1ff1603d00 | |||
c41ba068a6 | |||
33000e5b54 | |||
4c87a7da1c | |||
e531ac6d15 | |||
ed99bf210b | |||
0d3b1760e3 | |||
1b0fc116f2 | |||
f60611e565 | |||
6e670cb57c |
@ -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
2
.gitignore
vendored
@ -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
11
build_ci_cd.sh
Normal 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
2
build_native.sh
Normal file → Executable 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
|
||||||
|
@ -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
7
publish.sh
Normal file → Executable 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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user