Skip to content

Commit

Permalink
Revert "Merge branch 'apache:master' into master"
Browse files Browse the repository at this point in the history
This reverts commit 50aa2b3, reversing
changes made to b7e36c4.
  • Loading branch information
nicolasb29 committed Jan 6, 2024
1 parent 50aa2b3 commit f4c9247
Show file tree
Hide file tree
Showing 257 changed files with 10,787 additions and 15,454 deletions.
91 changes: 49 additions & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ env:
BUILD_DEPS: automake bison flex git libboost-all-dev libevent-dev libssl-dev libtool make pkg-config
CONFIG_ARGS_FOR_LIBS: >
--disable-debug
--disable-tests
--disable-dependency-tracking
--without-cpp
--without-c_glib
Expand Down Expand Up @@ -42,10 +43,9 @@ jobs:
strategy:
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -70,7 +70,7 @@ jobs:
# only upload while building ubuntu-20.04
- name: Archive built thrift compiler
if: matrix.os == 'ubuntu-20.04'
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp/thrift
Expand All @@ -82,13 +82,12 @@ jobs:
strategy:
matrix:
go:
- '1.19'
- '1.20'
- '1.21'
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- uses: actions/setup-go@v5
- uses: actions/setup-go@v4
with:
go-version: ${{ matrix.go }}

Expand All @@ -104,7 +103,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-go/with-go/')
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp
Expand All @@ -127,8 +126,8 @@ jobs:
run: make -C test/go precross

- name: Upload go precross artifacts
if: matrix.go == '1.21'
uses: actions/upload-artifact@v4
if: matrix.go == '1.20'
uses: actions/upload-artifact@v3
with:
name: go-precross
if-no-files-found: error
Expand All @@ -140,11 +139,11 @@ jobs:
needs: compiler
runs-on: ubuntu-20.04
env:
GRADLE_VERSION: "8.4"
GRADLE_VERSION: "8.0.2"
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- uses: actions/setup-java@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
Expand All @@ -159,7 +158,7 @@ jobs:
- name: Setup gradle
run: |
wget https://services.gradle.org/distributions/gradle-$GRADLE_VERSION-bin.zip -q -O /tmp/gradle-$GRADLE_VERSION-bin.zip
(echo "3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae /tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c -)
(echo "ff7bf6a86f09b9b2c40bb8f48b25fc19cf2b2664fd1d220cd7ab833ec758d0d7 /tmp/gradle-$GRADLE_VERSION-bin.zip" | sha256sum -c -)
unzip -d /tmp /tmp/gradle-$GRADLE_VERSION-bin.zip
sudo mv /tmp/gradle-$GRADLE_VERSION /usr/local/gradle
sudo ln -s /usr/local/gradle/bin/gradle /usr/local/bin
Expand All @@ -182,7 +181,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-java/with-java/' | sed 's/without-kotlin/with-kotlin/')
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp
Expand All @@ -200,7 +199,7 @@ jobs:
run: make -C lib/java install

- name: Upload java libthrift artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: libthrift
if-no-files-found: error
Expand All @@ -213,7 +212,7 @@ jobs:
run: make -C lib/java precross

- name: Upload java precross artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: java-precross
if-no-files-found: error
Expand All @@ -235,7 +234,7 @@ jobs:
run: make -C lib/kotlin precross

- name: Upload kotlin precross artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: kotlin-precross
if-no-files-found: error
Expand All @@ -248,7 +247,7 @@ jobs:
needs: compiler
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Run bootstrap
run: ./bootstrap.sh
Expand All @@ -257,7 +256,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-swift/with-swift/')
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp
Expand All @@ -271,7 +270,7 @@ jobs:
run: make -C test/swift precross

- name: Upload swift precross artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: swift-precross
if-no-files-found: error
Expand All @@ -284,9 +283,9 @@ jobs:
needs: compiler
runs-on: ubuntu-20.04
env:
TOOLCHAIN_VERSION: 1.65.0
TOOLCHAIN_VERSION: 1.61.0
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -310,7 +309,7 @@ jobs:
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-rs/with-rs/')
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp
Expand All @@ -333,7 +332,7 @@ jobs:
run: make -C test/rs precross

- name: Upload rust precross artifacts
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
with:
name: rs-precross
if-no-files-found: error
Expand All @@ -350,11 +349,9 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
python-version:
- "3.x"
fail-fast: false
python-version: ["2.x", "3.x"]
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand All @@ -363,7 +360,7 @@ jobs:
sudo apt-get install -y --no-install-recommends curl openssl ca-certificates
- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

Expand All @@ -373,15 +370,25 @@ jobs:
python --version
pip --version
- name: Python 2.x backport setup
if: matrix.python-version == '2.x'
run: |
python -m pip install --upgrade ipaddress backports.ssl_match_hostname
- name: Run bootstrap
run: ./bootstrap.sh

- name: Run configure 2.x
if: matrix.python-version == '2.x'
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-python/with-python/')
- name: Run configure 3.x
if: matrix.python-version == '3.x'
if: matrix.python-version != '2.x'
run: |
./configure $(echo $CONFIG_ARGS_FOR_LIBS | sed 's/without-py3/with-py3/')
- uses: actions/download-artifact@v4
- uses: actions/download-artifact@v3
with:
name: thrift-compiler
path: compiler/cpp
Expand Down Expand Up @@ -418,17 +425,17 @@ jobs:
client_lang: ['java,kotlin', 'go,rs', 'swift']
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- uses: actions/setup-python@v5
- uses: actions/setup-python@v4
with:
python-version: "3.x"

- uses: actions/setup-java@v4
- uses: actions/setup-java@v3
with:
distribution: temurin
# here we intentionally use an older version so that we also verify Java 17 compiles to it
java-version: 8
java-version: 11
cache: "gradle"

- name: Install openssl and certificates (for SSL tests)
Expand All @@ -437,31 +444,31 @@ jobs:
sudo apt-get install -y --no-install-recommends openssl ca-certificates
- name: Download java precross artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: java-precross
path: lib/java/build

- name: Download kotlin precross artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: kotlin-precross
path: lib/kotlin

- name: Download swift precross artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: swift-precross
path: test/swift/CrossTests/.build/x86_64-unknown-linux-gnu/debug

- name: Download rust precross artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: rs-precross
path: test/rs/bin

- name: Download go precross artifacts
uses: actions/download-artifact@v4
uses: actions/download-artifact@v3
with:
name: go-precross
path: test/go/bin
Expand All @@ -487,7 +494,7 @@ jobs:
--client ${{ matrix.client_lang }}
- name: Upload log files from failed cross test runs
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v3
if: failure()
with:
name: cross-test-log
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
compiler:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v3

- name: Install dependencies
run: |
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ project.lock.json
/lib/delphi/**/*.dcu
/lib/delphi/**/*.2007
/lib/delphi/**/codegen/*.bat
/lib/erl/_build/
/lib/erl/.eunit
/lib/erl/.generated
/lib/erl/.rebar/
Expand Down
8 changes: 4 additions & 4 deletions ApacheThrift.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,14 @@
the "Thrift" project.
2. nuget setApiKey <your-api-key>
3. nuget pack ApacheThrift.nuspec -Symbols -SymbolPackageFormat snupkg
4. nuget push ApacheThrift.0.20.0.nupkg -Source https://api.nuget.org/v3/index.json
4. nuget push ApacheThrift.0.19.0.nupkg -Source https://api.nuget.org/v3/index.json
-->

<package xmlns="http://schemas.microsoft.com/packaging/2013/05/nuspec.xsd">
<metadata>
<id>ApacheThrift</id>
<version>0.20.0</version>
<title>Apache Thrift 0.20.0</title>
<version>0.19.0</version>
<title>Apache Thrift 0.19.0</title>
<authors>Apache Thrift Developers</authors>
<owners>Apache Software Foundation</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -36,7 +36,7 @@
<description>
Contains runtime libraries from lib/netstd for netstandard2.0 framework development.
</description>
<repository type="GitHub" url="https://github.com/apache/thrift" branch="release/0.20.0" />
<repository type="GitHub" url="https://github.com/apache/thrift" branch="release/0.19.0" />
<tags>Apache Thrift RPC</tags>
</metadata>
<files>
Expand Down
Loading

0 comments on commit f4c9247

Please sign in to comment.