@@ -38,76 +38,100 @@ jobs:
38
38
- uses : actions/checkout@v1
39
39
- name : Prepare Rust for Centos7
40
40
uses : ./.github/actions/centos7
41
- - name : Install fpm
42
- shell : bash
43
- run : |
44
- yum install which -y
45
- yum -y install ruby rubygems ruby-devel
46
- curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import
47
- curl -L http://get.rvm.io | bash -s stable
48
- source /usr/local/rvm/scripts/rvm
49
- rvm install 2.5.0
50
- gem install fpm
51
- - name : Compiler
52
- run : |
53
- source "$HOME/.cargo/env"
54
- if [[ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]]; then
55
- # sudo apt install gcc-aarch64-linux-gnu
41
+ - name : Archive protoc
42
+ uses : actions/upload-artifact@v3
43
+ with :
44
+ name : protoc
45
+ path : |
46
+ /usr/bin/protoc
47
+ - name : Archive flatc
48
+ uses : actions/upload-artifact@v3
49
+ with :
50
+ name : flatc
51
+ path : |
52
+ /usr/bin/flatc
53
+ # - name: Install fpm
54
+ # shell: bash
55
+ # run: |
56
+ # yum install which -y
57
+ # yum -y install ruby rubygems ruby-devel
58
+ # curl -sSL https://rvm.io/pkuczynski.asc | gpg2 --import
59
+ # curl -L http://get.rvm.io | bash -s stable
60
+ # source /usr/local/rvm/scripts/rvm
61
+ # rvm install 2.5.0
62
+ # gem install fpm
63
+ # - name: Compiler
64
+ # run: |
65
+ # source "$HOME/.cargo/env"
66
+ # if [[ "${{ matrix.target }}" = "aarch64-unknown-linux-gnu" ]]; then
67
+ # # sudo apt install gcc-aarch64-linux-gnu
56
68
57
- # centos7
58
- yum -y install epel-release \
59
- && yum -y install gcc-aarch64-linux-gnu gcc-c++-aarch64-linux-gnu \
60
- && yum install -y http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/glibc-aarch64-linux-gnu-2.24-2.sdl7.2.noarch.rpm \
61
- && yum install -y http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/glibc-aarch64-linux-gnu-devel-2.24-2.sdl7.2.noarch.rpm
69
+ # # centos7
70
+ # yum -y install epel-release \
71
+ # && yum -y install gcc-aarch64-linux-gnu gcc-c++-aarch64-linux-gnu \
72
+ # && yum install -y http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/glibc-aarch64-linux-gnu-2.24-2.sdl7.2.noarch.rpm \
73
+ # && yum install -y http://springdale.princeton.edu/data/springdale/7/x86_64/os/Computational/glibc-aarch64-linux-gnu-devel-2.24-2.sdl7.2.noarch.rpm
62
74
63
- rustup target add aarch64-unknown-linux-gnu
64
- RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --workspace --bins --release --target aarch64-unknown-linux-gnu
65
- else
66
- cargo build --workspace --bins --release --target x86_64-unknown-linux-gnu
67
- fi
68
- - name : Package
69
- run : |
70
- bash -x ./packages/build_package.sh -n cnosdb -v ${{ steps.get-tag.outputs.TAG }} -b release -t ${{ matrix.target }}
71
- bash -x ./packages/build_package.sh -n cnosdb-meta -v ${{ steps.get-tag.outputs.TAG }} -b release -t ${{ matrix.target }}
72
- - name : Release
73
- uses : softprops/action-gh-release@v1
74
- with :
75
- files : |
76
- *.deb
77
- *.rpm
78
- tag_name : ${{ steps.get-tag.outputs.TAG }}
75
+ # rustup target add aarch64-unknown-linux-gnu
76
+ # RUSTFLAGS="-C linker=aarch64-linux-gnu-gcc" cargo build --workspace --bins --release --target aarch64-unknown-linux-gnu
77
+ # else
78
+ # cargo build --workspace --bins --release --target x86_64-unknown-linux-gnu
79
+ # fi
80
+ # - name: Package
81
+ # run: |
82
+ # bash -x ./packages/build_package.sh -n cnosdb -v ${{ steps.get-tag.outputs.TAG }} -b release -t ${{ matrix.target }}
83
+ # bash -x ./packages/build_package.sh -n cnosdb-meta -v ${{ steps.get-tag.outputs.TAG }} -b release -t ${{ matrix.target }}
84
+ # - name: Release
85
+ # uses: softprops/action-gh-release@v1
86
+ # with:
87
+ # files: |
88
+ # *.deb
89
+ # *.rpm
90
+ # tag_name: ${{ steps.get-tag.outputs.TAG }}
91
+ # - name: Archive protoc
92
+ # uses: actions/upload-artifact@v3
93
+ # with:
94
+ # name: protoc
95
+ # path: |
96
+ # /usr/bin/protoc
97
+ # - name: Archive flatc
98
+ # uses: actions/upload-artifact@v3
99
+ # with:
100
+ # name: flatc
101
+ # path: |
102
+ # /usr/bin/flatc
79
103
80
- build-windows :
81
- runs-on : windows-latest
82
- steps :
83
- - name : Get tag
84
- id : get-tag
85
- shell : bash
86
- run : |
87
- if [[ "${{ github.event_name }}" = "workflow_dispatch" ]]; then
88
- echo "TAG=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
89
- else
90
- echo "TAG=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
91
- fi
92
- - uses : actions/checkout@v3
93
- - name : Install Dependencies
94
- shell : bash
95
- run : |
96
- TARGETPLATFORM="windows/amd64" bash ./.github/tools/install_dependencies.sh
97
- - name : Compiler
98
- run : cargo build --workspace --bins --release --target x86_64-pc-windows-msvc
99
- - name : Package
100
- run : |
101
- New-Item -ItemType Directory -Path .\windows
102
- Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb.exe -Destination .\windows\cnosdb.exe
103
- Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb-meta.exe -Destination .\windows\cnosdb-meta.exe
104
- Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb-cli.exe -Destination .\windows\cnosdb-cli.exe
105
- Copy-Item -Path .\config\config.toml -Destination .\windows\cnosdb.conf
106
- Copy-Item -Path .\meta\config\config.toml -Destination .\windows\cnosdb-meta.conf
107
- Compress-Archive -Path .\windows\* -Destination .\cnosdb-community-${{ steps.get-tag.outputs.TAG }}-windows_x86_64.zip
108
- - name : Release
109
- uses : softprops/action-gh-release@v1
110
- with :
111
- files : |
112
- *windows_x86_64.zip
113
- tag_name : ${{ steps.get-tag.outputs.TAG }}
104
+ # build-windows:
105
+ # runs-on: windows-latest
106
+ # steps:
107
+ # - name: Get tag
108
+ # id: get-tag
109
+ # shell: bash
110
+ # run: |
111
+ # if [[ "${{ github.event_name }}" = "workflow_dispatch" ]]; then
112
+ # echo "TAG=${{ github.event.inputs.tag }}" >> "$GITHUB_OUTPUT"
113
+ # else
114
+ # echo "TAG=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
115
+ # fi
116
+ # - uses: actions/checkout@v3
117
+ # - name: Install Dependencies
118
+ # shell: bash
119
+ # run: |
120
+ # TARGETPLATFORM="windows/amd64" bash ./.github/tools/install_dependencies.sh
121
+ # - name: Compiler
122
+ # run: cargo build --workspace --bins --release --target x86_64-pc-windows-msvc
123
+ # - name: Package
124
+ # run: |
125
+ # New-Item -ItemType Directory -Path .\windows
126
+ # Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb.exe -Destination .\windows\cnosdb.exe
127
+ # Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb-meta.exe -Destination .\windows\cnosdb-meta.exe
128
+ # Copy-Item -Path .\target\x86_64-pc-windows-msvc\release\cnosdb-cli.exe -Destination .\windows\cnosdb-cli.exe
129
+ # Copy-Item -Path .\config\config.toml -Destination .\windows\cnosdb.conf
130
+ # Copy-Item -Path .\meta\config\config.toml -Destination .\windows\cnosdb-meta.conf
131
+ # Compress-Archive -Path .\windows\* -Destination .\cnosdb-community-${{ steps.get-tag.outputs.TAG }}-windows_x86_64.zip
132
+ # - name: Release
133
+ # uses: softprops/action-gh-release@v1
134
+ # with:
135
+ # files: |
136
+ # *windows_x86_64.zip
137
+ # tag_name: ${{ steps.get-tag.outputs.TAG }}
0 commit comments