Skip to content

Commit

Permalink
add linux ci
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 19, 2023
1 parent 3e9a6e2 commit 1a954b9
Showing 1 changed file with 36 additions and 1 deletion.
37 changes: 36 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,39 @@ jobs:
run: Powershell.exe -File .\build\_deps\service_fabric_cpp-src\scripts\check_cluster_online.ps1

- name: run echo example app
run: Powershell.exe -File .\tests\echo_script_test.ps1
run: Powershell.exe -File .\tests\echo_script_test.ps1

build-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
BUILD_TYPE: ["Debug"]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v2

- name: apt-get
run: apt-get install apt-transport-https curl lsb-release wget gnupg2 software-properties-common debconf-utils -y

- name: install sf
run: |
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb;
dpkg -i packages-microsoft-prod.deb;
curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | apt-key add - ;
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - ;
add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ;
apt-get update;
echo "servicefabric servicefabric/accepted-eula-ga select true" | debconf-set-selections ;
echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | debconf-set-selections ;
apt-get install servicefabricsdkcommon -y
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable

- name: run cmake
run: >
cmake . -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build
- name: run build
run: cmake --build build --config ${{ matrix.BUILD_TYPE }}

0 comments on commit 1a954b9

Please sign in to comment.