Skip to content

Commit

Permalink
use usual buil
Browse files Browse the repository at this point in the history
  • Loading branch information
youyuanwu committed Nov 19, 2023
1 parent 07cbe3a commit 81e7ce8
Showing 1 changed file with 19 additions and 28 deletions.
47 changes: 19 additions & 28 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,34 +48,37 @@ jobs:
- name: run echo example app
run: Powershell.exe -File .\tests\echo_script_test.ps1

container-test-job:
build-linux:
runs-on: ${{ matrix.os }}
strategy:
matrix:
BUILD_TYPE: ["Debug"]
os: [ ubuntu-latest ]
container:
image: mcr.microsoft.com/service-fabric/onebox:latest
env:
NODE_ENV: development
ports:
- 80
volumes:
- my_docker_volume:/volume_mount
options: --cpus 1
os: [ ubuntu-20.04 ]
steps:
- uses: actions/checkout@v4
- name: apt-get
run: apt-get update && apt-get install apt-transport-https curl lsb-release wget gnupg2 software-properties-common debconf-utils cmake build-essential libc6 -y
run: apt-get update && apt-get install apt-transport-https curl lsb-release wget gnupg2 software-properties-common debconf-utils clang lld -y

- uses: actions/checkout@v2
- name: Check for dockerenv file
run: (ls /.dockerenv && echo Found dockerenv) || (echo No dockerenv)
- name: install sf
run: |
wget -q https://packages.microsoft.com/config/ubuntu/$(lsb_release -rs)/packages-microsoft-prod.deb;
sudo dpkg -i packages-microsoft-prod.deb;
curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | sudo apt-key add - ;
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - ;
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ;
sudo apt-get update;
echo "servicefabric servicefabric/accepted-eula-ga select true" | sudo debconf-set-selections ;
echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | sudo debconf-set-selections ;
sudo apt-get install servicefabricsdkcommon -y
- name: Get specific version CMake, v3.21.2
uses: lukka/[email protected]

- 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
Expand All @@ -88,18 +91,6 @@ jobs:
# - name: apt-get
# run: sudo 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;
# sudo dpkg -i packages-microsoft-prod.deb;
# curl -fsSL https://packages.microsoft.com/keys/msopentech.asc | sudo apt-key add - ;
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - ;
# sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" ;
# sudo apt-get update;
# echo "servicefabric servicefabric/accepted-eula-ga select true" | sudo debconf-set-selections ;
# echo "servicefabricsdkcommon servicefabricsdkcommon/accepted-eula-ga select true" | sudo debconf-set-selections ;
# sudo apt-get install servicefabricsdkcommon -y

# - name: Install rust stable
# uses: actions-rs/toolchain@v1
# with:
Expand Down

0 comments on commit 81e7ce8

Please sign in to comment.