Skip to content

Commit 8524c4e

Browse files
author
zhangfuwen
committed
update ci
1 parent db4ab41 commit 8524c4e

File tree

3 files changed

+70
-70
lines changed

3 files changed

+70
-70
lines changed

.github/workflows/cmake.yml

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -18,36 +18,36 @@ jobs:
1818
runs-on: ubuntu-22.04
1919

2020
steps:
21-
- uses: actions/checkout@v2
22-
23-
- name: prepare
24-
run: sudo apt install gnutls-bin libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev meson ninja-build; bash prepare_vte.sh
25-
26-
- name: Configure CMake
27-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
28-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
29-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
30-
31-
- name: Build
32-
# Build your program with the given configuration
33-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
34-
35-
- name: Test
36-
working-directory: ${{github.workspace}}/build
37-
# Execute tests defined by the CMake configuration.
38-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
39-
run: ctest -C ${{env.BUILD_TYPE}}
40-
41-
- name: Pack
42-
working-directory: ${{github.workspace}}/build
43-
# Execute tests defined by the CMake configuration.
44-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
45-
run: cpack
46-
47-
- uses: actions/upload-artifact@v2
48-
with:
49-
name: my_deb
50-
path: ${{github.workspace}}/build/funterm-1.1-Linux.deb
21+
- uses: actions/checkout@v2
22+
23+
- name: prepare
24+
run: sudo apt install gnutls-bin libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev meson ninja-build libnautilus-extension-dev; bash prepare_vte.sh
25+
26+
- name: Configure CMake
27+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
28+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
29+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
30+
31+
- name: Build
32+
# Build your program with the given configuration
33+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
34+
35+
- name: Test
36+
working-directory: ${{github.workspace}}/build
37+
# Execute tests defined by the CMake configuration.
38+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
39+
run: ctest -C ${{env.BUILD_TYPE}}
40+
41+
- name: Pack
42+
working-directory: ${{github.workspace}}/build
43+
# Execute tests defined by the CMake configuration.
44+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
45+
run: cpack
46+
47+
- uses: actions/upload-artifact@v2
48+
with:
49+
name: my_deb
50+
path: ${{github.workspace}}/build/funterm-1.1-Linux.deb
5151

5252

5353

.github/workflows/cmake_2004.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
run: sudo apt install -y python3-pip ; sudo pip3 install meson==0.61.2
2525

2626
- name: prepare
27-
run: sudo apt install gnutls-bin g++-11 libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev ninja-build
27+
run: sudo apt install gnutls-bin g++-11 libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev ninja-build libnautilus-extension-dev
2828

2929
- name: update g++
3030
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11; sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 300; sudo update-alternatives --set cc /usr/bin/gcc; sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 300; sudo update-alternatives --set c++ /usr/bin/g++

.github/workflows/cmake_2110.yml

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -18,45 +18,45 @@ jobs:
1818
runs-on: ubuntu-21.10
1919

2020
steps:
21-
- uses: actions/checkout@v2
22-
23-
- name: install meson
24-
run: sudo apt install -y python3-pip ; sudo pip3 install meson==0.61.2
25-
26-
- name: prepare
27-
run: sudo apt install gnutls-bin g++-11 libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev ninja-build
28-
29-
- name: update g++
30-
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11; sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 300; sudo update-alternatives --set cc /usr/bin/gcc; sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 300; sudo update-alternatives --set c++ /usr/bin/g++
31-
32-
- name: prepare vte
33-
run: bash prepare_vte.sh
34-
35-
- name: Configure CMake
36-
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
37-
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
38-
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
39-
40-
- name: Build
41-
# Build your program with the given configuration
42-
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
43-
44-
- name: Test
45-
working-directory: ${{github.workspace}}/build
46-
# Execute tests defined by the CMake configuration.
47-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
48-
run: ctest -C ${{env.BUILD_TYPE}}
49-
50-
- name: Pack
51-
working-directory: ${{github.workspace}}/build
52-
# Execute tests defined by the CMake configuration.
53-
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
54-
run: cpack
55-
56-
- uses: actions/upload-artifact@v2
57-
with:
58-
name: my_deb
59-
path: ${{github.workspace}}/build/funterm-1.1-Linux.deb
21+
- uses: actions/checkout@v2
22+
23+
- name: install meson
24+
run: sudo apt install -y python3-pip ; sudo pip3 install meson==0.61.2
25+
26+
- name: prepare
27+
run: sudo apt install gnutls-bin g++-11 libgnutls30 libsystemd-dev valac gobject-introspection python3-gi libgirepository1.0-dev libvte-dev libgnutls* libibus-1.0-dev libgtkmm-3.0-dev g++ libpulse-dev libpsl-dev libbrotli-dev ninja-build libnautilus-extension-dev
28+
29+
- name: update g++
30+
run: sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 100 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11; sudo update-alternatives --install /usr/bin/cc cc /usr/bin/gcc 300; sudo update-alternatives --set cc /usr/bin/gcc; sudo update-alternatives --install /usr/bin/c++ c++ /usr/bin/g++ 300; sudo update-alternatives --set c++ /usr/bin/g++
31+
32+
- name: prepare vte
33+
run: bash prepare_vte.sh
34+
35+
- name: Configure CMake
36+
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
37+
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
38+
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
39+
40+
- name: Build
41+
# Build your program with the given configuration
42+
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
43+
44+
- name: Test
45+
working-directory: ${{github.workspace}}/build
46+
# Execute tests defined by the CMake configuration.
47+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
48+
run: ctest -C ${{env.BUILD_TYPE}}
49+
50+
- name: Pack
51+
working-directory: ${{github.workspace}}/build
52+
# Execute tests defined by the CMake configuration.
53+
# See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail
54+
run: cpack
55+
56+
- uses: actions/upload-artifact@v2
57+
with:
58+
name: my_deb
59+
path: ${{github.workspace}}/build/funterm-1.1-Linux.deb
6060

6161

6262

0 commit comments

Comments
 (0)