Skip to content

mmmmCreate swift.yml #696

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
  •  
  •  
  •  
22 changes: 22 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: Swift

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v
120 changes: 120 additions & 0 deletions Xcodes/Resources/aria2-release-1.35.0/.clang-format
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
Language: Cpp
AccessModifierOffset: -2
AlignAfterOpenBracket: Align
AlignConsecutiveAssignments: false
AlignConsecutiveDeclarations: false
AlignEscapedNewlines: Right
AlignOperands: true
AlignTrailingComments: true
AllowAllParametersOfDeclarationOnNextLine: true
AllowShortBlocksOnASingleLine: false
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: All
AllowShortIfStatementsOnASingleLine: false
AllowShortLoopsOnASingleLine: false
AlwaysBreakAfterDefinitionReturnType: None
AlwaysBreakAfterReturnType: None
AlwaysBreakBeforeMultilineStrings: false
AlwaysBreakTemplateDeclarations: MultiLine
BinPackArguments: true
BinPackParameters: true
BraceWrapping:
AfterClass: false
AfterControlStatement: false
AfterEnum: false
AfterFunction: true
AfterNamespace: false
AfterObjCDeclaration: false
AfterStruct: false
AfterUnion: false
AfterExternBlock: false
BeforeCatch: true
BeforeElse: true
IndentBraces: false
SplitEmptyFunction: true
SplitEmptyRecord: true
SplitEmptyNamespace: true
BreakBeforeBinaryOperators: None
BreakBeforeBraces: Stroustrup
BreakBeforeInheritanceComma: false
BreakInheritanceList: BeforeColon
BreakBeforeTernaryOperators: true
BreakConstructorInitializersBeforeComma: false
BreakConstructorInitializers: BeforeColon
BreakAfterJavaFieldAnnotations: false
BreakStringLiterals: true
ColumnLimit: 80
CommentPragmas: '^ IWYU pragma:'
CompactNamespaces: false
ConstructorInitializerAllOnOneLineOrOnePerLine: true
ConstructorInitializerIndentWidth: 4
ContinuationIndentWidth: 4
Cpp11BracedListStyle: true
DerivePointerAlignment: false
DisableFormat: false
ExperimentalAutoDetectBinPacking: false
FixNamespaceComments: true
ForEachMacros:
- foreach
- Q_FOREACH
- BOOST_FOREACH
IncludeBlocks: Preserve
IncludeCategories:
- Regex: '^"(llvm|llvm-c|clang|clang-c)/'
Priority: 2
- Regex: '^(<|"(gtest|isl|json)/)'
Priority: 3
- Regex: '.*'
Priority: 1
IncludeIsMainRegex: '$'
IndentCaseLabels: false
IndentPPDirectives: AfterHash
IndentWidth: 2
IndentWrappedFunctionNames: false
JavaScriptQuotes: Leave
JavaScriptWrapImports: true
KeepEmptyLinesAtTheStartOfBlocks: true
MacroBlockBegin: ''
MacroBlockEnd: ''
MaxEmptyLinesToKeep: 1
NamespaceIndentation: None
ObjCBinPackProtocolList: Auto
ObjCBlockIndentWidth: 2
ObjCSpaceAfterProperty: false
ObjCSpaceBeforeProtocolList: true
PenaltyBreakAssignment: 2
PenaltyBreakBeforeFirstCallParameter: 19
PenaltyBreakComment: 300
PenaltyBreakFirstLessLess: 120
PenaltyBreakString: 1000
PenaltyBreakTemplateDeclaration: 10
PenaltyExcessCharacter: 1000000
PenaltyReturnTypeOnItsOwnLine: 60
PointerAlignment: Left
ReflowComments: true
SortIncludes: false
SortUsingDeclarations: true
SpaceAfterCStyleCast: false
SpaceAfterTemplateKeyword: true
SpaceBeforeAssignmentOperators: true
SpaceBeforeCpp11BracedList: false
SpaceBeforeCtorInitializerColon: true
SpaceBeforeInheritanceColon: true
SpaceBeforeParens: ControlStatements
SpaceBeforeRangeBasedForLoopColon: true
SpaceInEmptyParentheses: false
SpacesBeforeTrailingComments: 1
SpacesInAngles: false
SpacesInContainerLiterals: true
SpacesInCStyleCastParentheses: false
SpacesInParentheses: false
SpacesInSquareBrackets: false
Standard: Cpp11
StatementMacros:
- Q_UNUSED
- QT_REQUIRE_VERSION
TabWidth: 8
UseTab: Never
...

46 changes: 46 additions & 0 deletions Xcodes/Resources/aria2-release-1.35.0/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
*~
*.o
*.lo
*.la
*.ce
*.cce
*.he
depcomp
*.m4
Makefile
Makefile.in
missing
autom4te.cache/
config.guess
config.h
config.h.in
config.log
config.status
config.sub
configure
install-sh
.deps/
stamp-h1
INSTALL
*.gmo
ABOUT-NLS
README.html
config.rpath
aria2c.1
aria2c.1.html
intl/
libtool
ltmain.sh
po/aria2.pot
po/remove-potcdate.sed
src/libaria2.pc
test-driver
libaria2api
libaria2ex
libaria2wx
.dirstamp
.libs
compile
main.log
main.trs
test-suite.log
49 changes: 49 additions & 0 deletions Xcodes/Resources/aria2-release-1.35.0/.travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
dist: trusty
language: cpp
cache: ccache
matrix:
include:
- os: linux
compiler: gcc
- os: linux
compiler: clang
- os: osx
osx_image: xcode8.3
compiler: clang
sudo: required
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-7
- autoconf
- automake
- autotools-dev
- autopoint
- libtool
- pkg-config
- libssl-dev
- libc-ares-dev
- libxml2-dev
- zlib1g-dev
- libsqlite3-dev
- libssh2-1-dev
- libcppunit-dev
before_install:
- $CC --version
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew update ; fi
# gmp is already installed
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew install --force cppunit gettext openssl libssh2 c-ares sqlite3 ccache ; fi
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then brew link --force cppunit gettext openssl libssh2 c-ares sqlite3 ccache ; fi
- if [ "$CXX" = "g++" ]; then export CXX="g++-7" CC="gcc-7"; fi
- if [ "$CXX" = "clang++" ]; then export CXX="$CXX -Qunused-arguments" CC="$CC -Qunused-arguments"; fi
- $CC --version
before_script:
- autoreconf -i
- automake
- autoconf
- if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then ./configure --without-openssl --without-gnutls --with-appletls --disable-nls CPPFLAGS=-fsanitize=address LDFLAGS=-fsanitize=address; fi
- if [[ "$TRAVIS_OS_NAME" != "osx" ]]; then ./configure CPPFLAGS=-fsanitize=address LDFLAGS="-fsanitize=address -fuse-ld=gold"; fi
script:
- make CC="ccache $CC" CXX="ccache $CXX" check
66 changes: 66 additions & 0 deletions Xcodes/Resources/aria2-release-1.35.0/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
These are people who made lots of contributions:

Tatsuhiro Tsujikawa <tatsuhiro.t at gmail dot com>
Ross Smith II <aria2spam at netebb dot com> (Windows port)
Nils Maier <maierman at web dot Germany>

The aria2 contributor's list extracted from commit logs [1]:

103yiran
Alexander Amanuel
Anthony Bryan
Artur Petrov
Athmane Madjoudj
Ben Chaney
Char
Cristian Rodríguez
Dan Fandrich
David Macek
Florian Gamböck
Fredrik Fornwall
ITriskTI
Igor Khomyakov
Jarda Snajdr
JimmyZ
Juan Francisco Cantero Hurtado
Kcchouette
Kurt Kartaltepe
Michał Górny
Michał Leśniewski
Mingye Wang
Nils Maier
ORiON-
ReadmeCritic
Rosen Penev
Ross Smith II
Ryan Steinmetz
Ryo ONODERA
Sarim Khan
Sergey Zolotarev
Sonny Piers
Sébastien Cabaniols
Tatsuhiro Tsujikawa
Torbjörn Lönnemark
Tse Kit Yam
Vasilij Schneidermann
Zoltan Toth-Czifra
amtlib-dot-dll
c3mb0
diadistis
eric1932
geetam
gilberto dos santos alves
gt
klemens
kwkam
luokar
mozillazg
multisnow
nicolov
oliviercommelarbre
qweaszxcdf
rotor
suzker
tcely

[1] https://gist.github.com/tatsuhiro-t/deaffeb064652104ad11
Loading