Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
32 changes: 32 additions & 0 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Build and Test

on:
push:
branches: [ master, develop ]
pull_request:
branches: [ master, develop ]

jobs:
build-and-test:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Show current Git branch
run: git branch --show-current

- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc g++ cmake golang uuid-dev

- name: Run pre-build script
run: |
chmod +x ./build_clean_linux64.sh
./build_clean_linux64.sh
shell: bash

- name: Run unit tests
run: ./build_linux64/Output/amc_unittest
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,9 @@
[submodule "submodules/libjpeg-turbo"]
path = submodules/libjpeg-turbo
url = https://github.com/libjpeg-turbo/libjpeg-turbo.git
[submodule "submodules/TinyJPEG"]
path = submodules/TinyJPEG
url = https://github.com/serge-rgb/TinyJPEG.git
[submodule "submodules/stb"]
path = submodules/stb
url = https://github.com/nothings/stb.git
55 changes: 51 additions & 4 deletions ACT/LibMC.xml
Original file line number Diff line number Diff line change
Expand Up @@ -658,10 +658,43 @@
<error name="INVALIDCONTENTSTATEID" code="632" description="Invalid content state ID" />
<error name="INVALIDWIDGETREQUEST" code="633" description="Invalid widget request" />
<error name="SOURCEVARIABLENOTFOUND" code="634" description="Source variable not found" />




<error name="INVALIDEVENTRETURNVALUES" code="635" description="Invalid event return values" />
<error name="INVALIDMODIFIERINTERPOLATIONCOUNT" code="636" description="Invalid modifier interpolation count" />
<error name="INVALIDTOOLPATHMODIFIERTYPE" code="637" description="Invalid toolpath modifier type." />
<error name="INVALIDTOOLPATHMODIFIERFACTOR" code="638" description="Invalid toolpath modifier factor." />
<error name="BINARYMETADATARELATIONSHIPNOTFOUND" code="639" description="Binary metadata relationship not found." />
<error name="ENVIRONMENTVARIABLECHANGEAFTERSTART" code="640" description="Environment variable change after start." />
<error name="INVALIDENVIRONMENTVARIABLENAME" code="641" description="Invalid environment variable name." />
<error name="ENVIRONMENTVARIABLEALREADYEXISTS" code="642" description="Environment variable already exists." />
<error name="REACHEDENVIRONMENTVARIABLELIMIT" code="643" description="Reached Environment variable limit." />
<error name="ENVIRONMENTVARIABLENOTFOUND" code="644" description="Environment Variable not found." />
<error name="INVALIDENVIRONMENTVARIABLEINDEX" code="645" description="Invalid environment variable index." />
<error name="COULDNOTREADPROCESSPIPE" code="646" description="Could not read process pipe." />
<error name="PROCESSEXECUTABLENOTFOUND" code="647" description="Process executable not found." />
<error name="COULDNOTCREATEPROCESSPIPE" code="648" description="Could not create process pipe." />
<error name="CREATEPROCESSFAILED" code="649" description="Create process failed." />
<error name="PROCESSEXECUTABLEDIRECTORYDOESNOTEXIST" code="650" description="Process executable directory does not exist." />
<error name="PROCESSCONTROLTIMEISINVALID" code="651" description="Process control time is invalid." />
<error name="PROCESSWORKINGDIRECTORYDOESNOTEXIST" code="652" description="Process working directory does not exist." />
<error name="PROCESSHASALREADYBEENSTARTED" code="653" description="Process has already been started." />
<error name="PROCESSHANDLINGNOTIMPLEMENTEDONPLATFORM" code="654" description="Process handling not implemented on Platform." />
<error name="INVALIDWRITEBUFFFERPOSITION" code="655" description="Invalid write buffer position." />
<error name="INVALIDWRITEBUFFERSIZE" code="656" description="Invalid write buffer size." />
<error name="CANNOTWRITETOFINISHEDFILE" code="658" description="Cannot write to finished file." />
<error name="WORKINGDIRECTORYHASBEENCLEANED" code="659" description="Working Directory has been cleaned." />
<error name="INVALIDCHARACTERINFILENAME" code="660" description="Invalid character in filename." />
<error name="WORKINGDIRECTORYCEASEDTOEXIST" code="661" description="Working directory ceased to exist." />
<error name="DIRECTORYALREADYEXISTS" code="662" description="Directory already exists." />
<error name="WORKINGDIRECTORYNOTFOUND" code="663" description="Working Directory not found." />
<error name="INVALIDSIGNALREACTIONTIMEOUT" code="664" description="Invalid Signal Reaction Timeout." />
<error name="INVALIDSIGNALQUEUESIZE" code="665" description="Invalid Signal queue size." />
<error name="SIGNALALREADYTRIGGERED" code="666" description="Signal has already been triggered." />
<error name="INVALIDQUERYPARAMETER" code="667" description="Invalid query parameter." />
<error name="DUPLICATEQUERYPARAMETER" code="668" description="Duplicate query parameter." />
<error name="QUERYPARAMETERNOTFOUND" code="669" description="Query parameter not found." />
<error name="INVALIDBUILDJOBSTATUSQUERY" code="670" description="Invalid build job status query." />
<error name="INVALIDNEWBUILDSTATUS" code="671" description="Invalid new build status." />

</errors>


Expand All @@ -682,6 +715,10 @@
<option name="Testing" value="3"/>
</enum>

<enum name="StreamConnectionType">
<option name="JSONEventStream" value="1"/>
<option name="JPEGImageStream" value="2"/>
</enum>

<class name="Base">

Expand Down Expand Up @@ -712,6 +749,10 @@
<param name="IdleDelay" type="uint32" pass="return" description="Idle Delay." />
</method>

<method name="GetStreamType" description="Returns the stream type.">
<param name="StreamType" type="enum" class="StreamConnectionType" pass="return" description="Content type of the stream." />
</method>

</class>


Expand Down Expand Up @@ -744,6 +785,12 @@
<param name="Name" type="string" pass="in" description="Name of the form data field." />
<param name="String" type="string" pass="in" description="DataString that was sent." />
</method>

<method name="SetRequestParameter" description="Sets a request parameter.">
<param name="Name" type="string" pass="in" description="Name of the parameter." />
<param name="Value" type="string" pass="in" description="Value of the parameter." />
</method>


<method name="Handle" description="handles the request.">
<param name="RawBody" type="basicarray" class="uint8" pass="in" description="Raw Body that was sent. Only necessary, if ExpectsRawBody returns true." />
Expand Down
Loading