Skip to content
This repository was archived by the owner on Feb 20, 2022. It is now read-only.

Commit 31dcee2

Browse files
committed
Trying automated build
1 parent f9c349b commit 31dcee2

9 files changed

+24
-5
lines changed

.github/workflows/push-to-master.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
on:
2+
push:
3+
branches: ['master']
4+
jobs:
5+
build:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@master
9+
- id: make_version_string
10+
uses: sandersaares-actions/make-version-string@master
11+
with:
12+
assemblyInfoPath: AssemblyInfo.cs
13+
primaryBranch: 'publish'
14+
- uses: sandersaares-actions/expand-tokens@master
15+
env:
16+
version: ${{ steps.make_version_string.outputs.versionstring }}
17+
with:
18+
path: Constants.cs
19+
- run: docker run --rm --volume $GITHUB_WORKSPACE:/github/workspace mcr.microsoft.com/dotnet/core/sdk:3.1-alpine pwsh -File /github/workspace/Build.ps1
File renamed without changes.

Build.ps1

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ if (!(Test-Path ./Output/)) {
1616

1717
Get-ChildItem ./Output/ | Remove-Item
1818

19-
Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/linux-x64/publish/* -DestinationPath ./Output/linux-x64.zip
20-
Compress-Archive -Path ./TzspPacketStreamExporter/bin/Release/netcoreapp3.1/win-x64/publish/* -DestinationPath ./Output/win-x64.zip
19+
Compress-Archive -Path ./bin/Release/netcoreapp3.1/linux-x64/publish/* -DestinationPath ./Output/linux-x64.zip
20+
Compress-Archive -Path ./bin/Release/netcoreapp3.1/win-x64/publish/* -DestinationPath ./Output/win-x64.zip

TzspPacketStreamExporter/Constants.cs Constants.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ namespace TzspPacketStreamExporter
55
static class Constants
66
{
77
// Will be replaced with real version string (AssemblyInfo number + build parameters) on automated build.
8-
public const string VersionString = "__BUILD_BUILDNUMBER__";
8+
public const string VersionString = "__version__";
99

1010
public const ushort DefaultPublishPort = 9184;
1111

1212
/// <summary>
1313
/// How many packets we process before we restart TShark.
1414
/// This is necessary because we want to clean up the temporary files TShark generates.
15-
///
15+
///
1616
/// Why can't we just use the ring buffer options? Because at least on my Windows PC,
1717
/// TShark never deletes old files in the ring buffer... so it's not a ring buffer at all.
1818
/// </summary>
File renamed without changes.
File renamed without changes.

TzspPacketStreamExporter.sln

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.29709.97
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TzspPacketStreamExporter", "TzspPacketStreamExporter\TzspPacketStreamExporter.csproj", "{9352680E-1F34-4422-8F68-58148DB32B58}"
6+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TzspPacketStreamExporter", "TzspPacketStreamExporter.csproj", "{9352680E-1F34-4422-8F68-58148DB32B58}"
77
EndProject
88
Global
99
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)