Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
S
Scenario Compiler
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Masters-thesis
Scenario Compiler
Commits
8169ca50
Verified
Commit
8169ca50
authored
1 year ago
by
Mateusz Brawański
Browse files
Options
Downloads
Patches
Plain Diff
Enable builds for Linux ARM64.
parent
a60d3218
Branches
Branches containing commit
Tags
v1.3.2
Tags containing commit
No related merge requests found
Pipeline
#4436
passed
1 year ago
Stage: lint
Stage: build
Stage: test
Stage: package
Stage: deploy
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+37
-16
37 additions, 16 deletions
.gitlab-ci.yml
src/Emzi0767.DbResearch.ScenarioCompiler/Emzi0767.DbResearch.ScenarioCompiler.csproj
+1
-1
1 addition, 1 deletion
...narioCompiler/Emzi0767.DbResearch.ScenarioCompiler.csproj
with
38 additions
and
17 deletions
.gitlab-ci.yml
+
37
−
16
View file @
8169ca50
...
...
@@ -109,22 +109,24 @@ package-linux:
artifacts
:
false
-
build
script
:
-
dotnet publish src/*/*.csproj -v minimal -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained
true
-r linux-x64 --version-suffix "$VERSION_SUFFIX" -p:BuildNumber="$(cat "$VERSION_BUILD_NUMBER_FILE")" -o ${PUBLISH_DIRECTORY}-linux-x64
-
dotnet publish src/*/*.csproj -v minimal -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained
true
-r linux-musl-x64 --version-suffix "$VERSION_SUFFIX" -p:BuildNumber="$(cat "$VERSION_BUILD_NUMBER_FILE")" -o ${PUBLISH_DIRECTORY}-linux-musl-x64
-
dotnet publish src/*/*.csproj -v minimal -c Release -p:PublishTrimmed=true -p:PublishSingleFile=true -p:PublishReadyToRun=true --self-contained
true
-r linux-${LINUX_RUNTIME} --version-suffix "$VERSION_SUFFIX" -p:BuildNumber="$(cat "$VERSION_BUILD_NUMBER_FILE")" -o ${PUBLISH_DIRECTORY}-linux-${LINUX_RUNTIME}
artifacts
:
name
:
"
${CI_PROJECT_TITLE}_${CI_JOB_NAME}_${CI_BUILD_REF_NAME}"
paths
:
-
${PUBLISH_DIRECTORY}-linux-x64
-
${PUBLISH_DIRECTORY}-linux-musl-x64
-
${PUBLISH_DIRECTORY}-linux-${LINUX_RUNTIME}
parallel
:
matrix
:
-
LINUX_RUNTIME
:
'
x64'
-
LINUX_RUNTIME
:
'
musl-x64'
-
LINUX_RUNTIME
:
'
arm64'
-
LINUX_RUNTIME
:
'
musl-arm64'
deploy-gitlab
:
stage
:
deploy
dependencies
:
-
package
-
package-linux
needs
:
-
package
-
package-linux
script
:
-
apt-get update && apt-get install -y --no-install-recommends zip curl
-
export workdir=$(pwd)
...
...
@@ -132,19 +134,9 @@ deploy-gitlab:
-
pushd ${PUBLISH_DIRECTORY}
-
zip -9v "${workdir}/scenario-compiler-win64.zip" *
-
popd
# Linux x64
-
pushd ${PUBLISH_DIRECTORY}-linux-x64
-
tar cvzf "${workdir}/scenario-compiler-linux-x64.tar.gz" *
-
popd
# Linux musl x64
-
pushd ${PUBLISH_DIRECTORY}-linux-musl-x64
-
tar cvzf "${workdir}/scenario-compiler-linux-musl-x64.tar.gz" *
-
popd
# Push
-
export PKG_VERSION=$(grep '<VersionPrefix>' src/*/*.csproj | sed -r 's/.*>(.*)<.*/\1/g')
-
'
curl
-H
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
scenario-compiler-win64.zip
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scenario-compiler/${PKG_VERSION}/scenario-compiler-win64.zip"'
-
'
curl
-H
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
scenario-compiler-linux-x64.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scenario-compiler/${PKG_VERSION}/scenario-compiler-linux-x64.tar.gz"'
-
'
curl
-H
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
scenario-compiler-linux-musl-x64.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scenario-compiler/${PKG_VERSION}/scenario-compiler-linux-musl-x64.tar.gz"'
only
:
-
tags
artifacts
:
...
...
@@ -153,3 +145,32 @@ deploy-gitlab:
-
scenario-compiler-win64.zip
-
scenario-compiler-linux-x64.tar.gz
-
scenario-compiler-linux-musl-x64.tar.gz
deploy-gitlab-linux
:
stage
:
deploy
dependencies
:
-
package-linux
needs
:
-
package-linux
script
:
-
apt-get update && apt-get install -y --no-install-recommends zip curl
-
export workdir=$(pwd)
# Linux RUNTIME
-
pushd ${PUBLISH_DIRECTORY}-linux-${LINUX_RUNTIME}
-
tar cvzf "${workdir}/scenario-compiler-linux-${LINUX_RUNTIME}.tar.gz" *
-
popd
# Push
-
export PKG_VERSION=$(grep '<VersionPrefix>' src/*/*.csproj | sed -r 's/.*>(.*)<.*/\1/g')
-
'
curl
-H
"JOB-TOKEN:
${CI_JOB_TOKEN}"
--upload-file
scenario-compiler-linux-${LINUX_RUNTIME}.tar.gz
"${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/scenario-compiler/${PKG_VERSION}/scenario-compiler-linux-${LINUX_RUNTIME}.tar.gz"'
only
:
-
tags
artifacts
:
name
:
"
${CI_PROJECT_TITLE}_${CI_JOB_NAME}_${CI_BUILD_REF_NAME}"
paths
:
-
scenario-compiler-linux-${LINUX_RUNTIME}.tar.gz
parallel
:
matrix
:
-
LINUX_RUNTIME
:
'
x64'
-
LINUX_RUNTIME
:
'
musl-x64'
-
LINUX_RUNTIME
:
'
arm64'
-
LINUX_RUNTIME
:
'
musl-arm64'
This diff is collapsed.
Click to expand it.
src/Emzi0767.DbResearch.ScenarioCompiler/Emzi0767.DbResearch.ScenarioCompiler.csproj
+
1
−
1
View file @
8169ca50
...
...
@@ -25,7 +25,7 @@
<Description>
Program which converts test scenarios from a user-friendly format to a compiled format.
</Description>
<Authors>
Mateusz Brawański
<
Emzi0767
>
</Authors>
<VersionPrefix>
1.3.
1
</VersionPrefix>
<VersionPrefix>
1.3.
2
</VersionPrefix>
<AssemblyVersion>
$(Version).0
</AssemblyVersion>
<FileVersion>
$(AssemblyVersion)
</FileVersion>
<ProductVersion>
$(AssemblyVersion)
</ProductVersion>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment