24 Commits
Author SHA1 Message Date
Benedek Kozma 81f93f2ff5 Remove extra space 2025-09-03 23:16:38 +02:00
Benedek Kozma 5427a3720a Add more missing repo URLs 2025-09-03 23:15:38 +02:00
Benedek Kozma 5add4b628f Add missing repository url to image name 2025-09-03 23:00:08 +02:00
Benedek Kozma a92b591088 use correct env var for image name 2025-09-03 22:45:15 +02:00
Benedek Kozma 8ab3f602b9 fix digest name 2025-09-03 22:43:12 +02:00
Benedek Kozma e4a4e741a7 Try building docker image without QEMU 2025-09-03 22:36:29 +02:00
Benedek Kozma c12f82b13e Also build docker image for ARM64 2025-09-03 21:07:21 +02:00
Rafal Sroka 41345513b7 Update actions/upload-artifact action to version 4 2025-05-14 08:23:59 +02:00
Ruslan Alikhamov 8320551494 Set swift to 5.10 for ubuntu release 2024-12-29 17:22:30 +05:00
Matthew Pierce 4e10fa733b Fixes issue around mutable capture of 'inout' parameter 'buffer' is not allowed in concurrently-executing code (#1363) 2024-08-29 12:13:37 +04:00
Ruslan Alikhamov 7a12709fcf Changed swift action for ubuntu release 2024-03-20 08:19:43 +04:00
Ruslan Alikhamov ac289decb3 Disabled docs generation when a new tag is created during release 2024-03-19 22:39:15 +04:00
Ruslan Alikhamov 5e6df69c01 Resolved all SwiftSyntax Warnings (#1295)
* Resolved all swiftSyntax warnings

* Set concrete Ubuntu version to fix GH action

* Switch to another GH action
2024-03-10 11:53:37 +04:00
Ruslan Alikhamov 01ec1e79ff Cancel tests unless it was triggered by tag 2024-01-23 16:18:00 +04:00
Ruslan Alikhamov e726648242 Generate docs before building for release 2024-01-23 15:16:38 +04:00
Ruslan Alikhamov 15decca03b Explicit dependency of release action on tests job 2024-01-23 11:47:47 +04:00
Ruslan Alikhamov f2325b8226 Changed action triggers (#1257) 2024-01-16 01:49:11 +04:00
Ruslan Alikhamov 38a6731dee Release Automation (#1254)
* new GH actions for release automation

* updated Xcode version for macOS

* updated actions

* added pull request trigger [no-ci]

* adjusted pull_request requirement for actions [no-ci]

* fixed build errors for release builds

* added libcurl4 dependency

* added custom swift installation for lcurl issue

* enabled fat binary for macOS release build

* fixed typo

* removed redundant spaces

* fixed wrong reference

* updated actions for ubuntu

* fixed folder paths

* fixed typo

* debug - print build_dir

* fixed build path for linux

* fixed path for release binary

* attempt to build on aarch64

* removed attempt for aarch64

* changed event type release created for artifacts

* excluded *_Linux.swift files from documentation

* added jazzy action

* renamed actions

* added test  dependencies for release jobs

* removed pull_request trigger for jazzy

* added missing jazzy dependency

* allow test actions to be called

* adjusted workflow name

* testing

* renamed release filename for ubuntu

* disabled workflow_run for test

* disabled on tags for testing

* disabled check for test

* removed apostrophes

* added ls for test

* test generating docs

* fixed wrong variable

* added job dependency

* fixed wrong copy

* install tac

* exported variables between steps

* migrated docs job into build

* debugging ls

* test run

* debug ls

* renamed archive file

* moved final archive to ~

* moved files to ~

* flatten archive on ubuntu

* flattened archives; fixed artifactbundle

* changed packaging

* removed redundant mv

* fixed typo

* replaced mv with cp

* last test with docset

* added missing jazzy setup

* changed attributes for compiled binary

* compressing before packaging

* removed test triggers

* enabled tests for PRs

* renamed file
2024-01-15 23:14:13 +04:00
Ruslan Alikhamov fbbf1bedfb added release automation for brew (#1227) 2023-11-24 20:31:48 +04:00
Ruslan Alikhamov 22ba4f3a1b Update docker.yml (#1212) 2023-10-23 12:44:33 +04:00
JP Simard f92cd864e6 Add Dockerfile (#1211)
* Add Dockerfile

To simplify building on Linux:

```console
docker build -t sourcery-image .
docker run sourcery-image sourcery --help
```

I've kept the resulting Docker image small(-ish) at the expense of
probably removing some useful functionality. I haven't tested this
thoroughly but I'll leave it to other contributors can expand this as
needed.

* Simplfy build flags

Since the runtime image is also Swift.

* Add CI job to build and publish docker images to GitHub Packages

Will run on commits to the `master` branch and tags.
2023-10-17 23:16:30 +04:00
Ruslan Alikhamov 59d9eb9c43 Update xcodeproj dependency (#1209)
* Updated XcodeProj to 8.15.0

* Removed redundant dependency

* Updated swift version for Linux action

* Changed action to SwiftyLab/setup-swift
2023-10-09 01:37:43 +04:00
Ruslan Alikhamov ba63cd6b84 Linux Support (#1188)
* work in progress

* More conditional checks, less errors

* Further steps onto successful compilation

* Enabled try-catch back for macOS

* reverted redundant change

* Replaced getVaList with recommended withVaList

* Update FileParser + AttributesModifierSpec.swift

fixed wrong find-replace

* added missing import of CDispatch

* enabled fatalError instead of NSException

* enabled value(forKey:) for TypesCollection type

* removed commented import

* enabled sha256 for macOS

* Enabled sha256 hashing for Linux

* disabled JavaScriptTemplate tests under Linux

* added check for vendor for tests

* disabled value(forKeyPath:) calls under Linux

* reverted redundant gem

* Fixed issue with `swift test` not finding .ejs bundle

* removed commented code

* switched to `swift test`

* enabled GH actions

* Temporary check for installed Xcodes - Update swift.yml

* Temporary checking Xcode versions - Update swift.yml

* Temporary setting Xcode version - Update swift.yml

* Temporary remove custom Ruby installation - Update swift.yml

* Removed spaces from filenames

* removed + from filenames

* Added -enable-testing for all test targets

* Try Xcode 15 beta

* trying to generate LinuxMain

* refactoring

* running a test for test of a test

* set SPM version to 5.8

* added tests to LinuxMain.swift

* removed redundantly disabled code

* fixed wrong ifdef

* Moved diffable implementation to definitions

* fixed failing UTs

* replaced os(macOS) with canImport(ObjectiveC)

* replaced more os(macOS) with canImport(ObjectiveC)

* enabled filtering for sorted arrays on linux

* eliminating API unsupported by swift-corelibs-foundation

* enabled SourceryRuntime to compile under Linux

* isEqual overrides only for Darwin platforms

* Fixed all SourceryRuntime compilation errors; more green tests

* Disabled enum test case

* moved isEqual to definitions

* fatalError when DynamicMemberLookup fails

* disabled failing test

* disabled crashing test in DryOutputSpec

* Fixed more unit tests

* Fixed typo

* Added best effort sorting filter

* added missing dynamic member lookups

* Added missing dynamic member lookup

* fixed compilation error

* Take into account 1-off linebreak issue between Linux and macOS

* Removed diffable from content generation due to new structure

* added missing dynamic member lookups

* Added missing dynamic member lookup

* moving hashing into class definitions

* Moved description and hash into class definitions

* Added DynamicMemberLookup definition for SourceryRuntime

* Added comment why import Stencil is needed

* Added missing dynamic member lookup

* Removed redundant imports

* Fixed failing tests

* Adjusted test expectation for Linux

* Fixed SourcerySpec template combining test

* Temporary commit for CI verification

* Adjusted SwiftTemplateSpecs tests for Linux

* reverted redundant change

* enable more linux tests for CI verification

* Adjusted CodableContextTests for Linux

* Added more tests that are green

* enabled all tests except 3

* Remove verbosity from CI build

* Removed redundant steps from CI

* Reverted redundant change

* Testing job cancellation

* Added new dynamic member lookup to generated sources [no ci]

* Added different TypesCollection definition for Linux

* Make TypesCollection conform to DynamicMemberLookup only on Linux

* Moved TypesCollection to separate generated source file

* Moved Type to separate file for Linux

* Split GitHub actions

* removed common GH action

* added separate file for Variable on linux

* removed DynamicMemberLookup conformance on macOS

* removed @objc conditions on Linux

* Temporary commit to fix build error

* moved NSException workaround to separate file

* Fixed compiler warning

* moved Types to a separate file

* moved generated Types to a separate file

* split Enum.swift into separate files

* removed redundant imports

* added missing import

* Removed redundant import

* Split Method into separate files

* Added DynamicMemberLookup to Method on Linux [no ci]

* removed redundant override

* added badges for GH Actions

* Fixed failing test on macOS

* Split Tuple into separate files for Linux

* Split EnumCase into separate file for DynamicMemberLookup on Linux

* Enabled GeneratorSpec tests

* Added missing lookup member

* Fixed SourcerySpecTests

* enabled SourcerySpec tests

* Added missing lookup member

* call runCLI on Linux

* Disabled codegen for Sourcery

* Added missing member lookup

* Added missing members lookup

* renamed Linux to include experimental

* Added missing member lookups

* Added missing import

* Adjusted padding [no ci]

* Added missing member lookups

* Adjusted padding [no ci]

* Disabled Codable tests on Linux

* enabled all tests classes under Linux

* Added AssociatedValue for Linux

* Added missing member lookups

* Changed resource copy path in TemplatesTests for Linux

* Updated CHANGELOG

* Added LINUX.md

* Added references to README and LINUX

* Updated content.generated files

* Fixed a typo [no ci]

* Changed wording related to @objc attribute

* Use currentTimestamp() instead of Date().timeIntervalSince1970

* Returned guard statements; removed default values from EJSTemplate
2023-09-07 23:27:22 +04:00
Ruslan Alikhamov 7c04194eb4 Create swift.yml (#1189)
Implemented GH actions for macOS and ubuntu; 
disabled both actions until #1188 is merged.
2023-08-12 18:51:53 +04:00