Commit Graph

1071 Commits

Author SHA1 Message Date
Wolfgang Thaller
3737404c4b without comdition 2023-12-16 19:10:22 +01:00
Wolfgang Thaller
192081cd01 use variable group 2023-12-16 19:05:30 +01:00
Wolfgang Thaller
e2143c9c20 try with service connection again 2023-12-16 17:02:16 +01:00
Wolfgang Thaller
34eeb4dbb7 use token variable and explicit commands for docker 2023-12-16 16:47:36 +01:00
Wolfgang Thaller
1d8f4f6774 test setup for docker 2023-12-16 16:27:50 +01:00
Wolfgang Thaller
8b57ceac12 add /build to gitignore 2023-12-16 15:14:53 +01:00
Wolfgang Thaller
147b839de6 update docker connection 2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
de06b24fd7 azure-pipelines.yml: push retro68 release image to GHCR
This release image contains the basic toolchain that can be used for building
projects without having to build Retro68 locally, including integration into a
CI pipeline.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
3a4468b270 azure-pipelines.yml: switch from host build to container build
This has two main advantages: firstly it means that the Dockerfile is being tested
as part of the pipeline when changes are merged into master, and secondly it allows
testing of Linux builds without requiring a separate job for Docker that can consume
even more CI minutes.

In order to test the container image it is necessary to manually start the build
image using docker run, execute the tests, and then copy the results back to the
host ready for publishing.

Note that since the base OS image is now handled by docker we can switch the host
to use the 'ubuntu-latest' image rather than the older 'ubuntu-20.04' image.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
d8e2780f8d Dockerfile: add toolchain bin directory to the default PATH
This allows the Retro68 compilers to be executed regardless of the current
working directory which is set to /root by default.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
86a16a78cf Dockerfile: add git package to the image
This enables code to be checked out from within the running container as is
typically used by CI runners.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
bde1485a9e Dockerfile: only copy the build directory artifacts into the final release image
Use the docker multi-stage build functionality to perform the Retro68 build in a
temporary build image, and then copy the final build directory into a fresh
release image. This reduces the final release image size from 9.2GB to 2.6GB.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
0649693436 Dockerfile: bring build up to date with that in azure-pipelines.yml
Update Dockerfile to use Ubuntu 20.04 and the updated package list from
azure-pipelines.yml. Also explicitly include the g++ package into the container
without which configure will error out with a 'configure: error: C++ preprocessor
"/lib/cpp" fails sanity check' error.
2023-12-16 12:59:53 +01:00
Mark Cave-Ayland
a230a79ca3 azure-pipelines.yml: temporary disable all non-Linux builds 2023-12-16 12:59:51 +01:00
Wolfgang Thaller
591f2620d2 export variables from PEF (thanks to @elliotnunn) 2023-12-16 03:55:00 +01:00
Wolfgang Thaller
d77e4d1411 Merge remote-tracking branch 'origin/master' into gcc12-update 2023-12-12 23:48:09 +01:00
Wolfgang Thaller
6b552072a9 Merge branch 'master' into gcc12-update 2023-12-12 23:47:15 +01:00
Wolfgang Thaller
6ac29f751a fix weak[BS] symbol bug in xcoff linker 2023-12-12 20:40:58 +01:00
Wolfgang Thaller
c0d4e00b35 add LocalStatic test case 2023-12-12 20:40:57 +01:00
Wolfgang Thaller
d2dbd28dd3 update gitignore 2023-12-12 20:39:32 +01:00
Wolfgang Thaller
a97417fecc ci: update nix docker version 2023-12-09 01:03:45 +01:00
Wolfgang Thaller
04ab7e92ac
Merge pull request #214 from VyrCossont/patch-1
Add texinfo to brew install commands
2023-12-08 17:12:25 +01:00
Vyr Cossont
3537637c0f
Add texinfo to brew install commands
Following the instructions as is on macOS results in `build-toolchain.bash` failing with `WARNING: 'makeinfo' is missing on your system`. The readme was updated in #59 but only for Ubuntu.
2023-10-23 13:08:19 -07:00
Karim Vergnes
7d2ebc7ba6
Hotfix: inherit system provided in argument 2023-10-09 17:31:35 +02:00
Karim Vergnes
0de4f1502b
Use global nixpkgs to allow immutable builds 2023-10-09 17:28:24 +02:00
Wolfgang Thaller
4007b27d05 fix plain C pascal strings 2023-07-04 23:30:47 +02:00
Wolfgang Thaller
5f88250601
Merge pull request #203 from ryandesign/patch-1
ConvertObj: Fix typo in comment
2022-12-29 20:49:23 +01:00
Wolfgang Thaller
3f74aa7561
Merge pull request #202 from ryandesign/ryandesign-void
Declare all C function parameters
2022-12-29 20:49:05 +01:00
Ryan Schmidt
b80f694ad1
ConvertObj: Fix typo in comment 2022-12-05 07:05:58 -06:00
Ryan Schmidt
8f68ffd203 Declare all C function parameters
Specify parameters for all C functions. Not specifying parameters is the
same as specifying "void" in C++ and in C23 and later but that's not the
case in C prior to C23.

Compile C files with the same warnings as C++ files, additionally making
the strict prototypes warning an error to catch such problems in the
future. This commit isn't intended to address all the other warnings now
being emitted.
2022-12-05 06:48:30 -06:00
Wolfgang Thaller
3e426b21ea
Merge pull request #196 from ryandesign/multiseg-zero-pad-id
Fix multisegment app with > 10 CODE resources
2022-12-04 19:47:10 +01:00
Wolfgang Thaller
281135ccfa add test for pascal strings in C++ 2022-12-04 10:28:57 +01:00
Wolfgang Thaller
a966fd5f8a Elf2Mac: don't insist that sections actually exist 2022-12-04 10:28:33 +01:00
Wolfgang Thaller
b7f956111a nix: add texinfo build input 2022-12-04 10:27:21 +01:00
Wolfgang Thaller
1facbfab7d
Merge pull request #201 from ryandesign/patch-1
ConvertObj: Fix typos in error messages
2022-12-04 10:16:50 +01:00
Ryan Schmidt
ee75babf9e
ConvertObj: Fix typos in error messages 2022-11-27 16:35:46 -06:00
Wolfgang Thaller
2abb66c0b7 work around (fix?) the strange cross-segment refs that GNU ld generates when debug info is present 2022-10-28 18:03:30 +02:00
Wolfgang Thaller
74fc6d3995 add automated test for pascal string literals 2022-10-28 11:39:46 +02:00
Wolfgang Thaller
ca8e6715cb PowerPC: we need XCOFF_DEBUG, dwarf doesn't work 2022-10-28 11:38:55 +02:00
Wolfgang Thaller
d0bc757570 fixes for gcc 12.2 update 2022-10-27 23:05:23 +02:00
Wolfgang Thaller
3bd66e8819 re-apply fix lost in merge 2022-10-27 22:00:33 +02:00
Wolfgang Thaller
326b9c406d Merge branch 'upstream' into gcc12-update 2022-10-27 21:55:34 +02:00
Wolfgang Thaller
70cf4d1e0b gcc 12.2.0 and newlib 4.2.0 (484d2ebf8d82) 2022-10-27 20:55:19 +02:00
Wolfgang Thaller
f485e125c4 binutils 2.39 2022-10-27 20:45:45 +02:00
Wolfgang Thaller
6ea1bcda2b Revert "switch from binutils only to binutils-gdb, tag gdb-10.1-release"
This reverts commit 6c5c652ee1.
2022-10-27 20:43:13 +02:00
Ryan Schmidt
695053149e Fix multisegment app with > 10 CODE resources
Closes #195
2022-10-26 20:16:14 -05:00
Wolfgang Thaller
2d38cceb19
Merge pull request #189 from ryandesign/minivmac-copy-attrs
MiniVMac.cc: Preserve attributes when copying
2022-10-25 23:27:07 +02:00
Wolfgang Thaller
932ceadf9c
Merge pull request #190 from ryandesign/LaunchAPPL-find-libhfs
LaunchAPPL: Find libhfs header/library
2022-10-25 23:26:29 +02:00
Ryan Schmidt
f06c07d40d LaunchAPPL: Find libhfs header/library 2022-10-08 00:06:46 -05:00
Ryan Schmidt
14f5ad3728 MiniVMac.cc: Preserve attributes when copying
When copying files from the system disk image to the new disk image,
preserve all attributes (creation date, modification date, bundle bit,
locked bit, etc.), except clear the inited bit so that the Finder
chooses new icon positions, otherwise (under System 6 at least) the
icons pile up on top of each other. Preserving the bundle bit in
particular tells the Finder to look in the file for icon information
when building the desktop database, without which the files all show
generic icons in the Finder.
2022-10-06 17:11:32 -05:00