Skip to content

Commit

Permalink
Merge pull request #1156 from 0chain/hotfix-devops
Browse files Browse the repository at this point in the history
comment out deps, update go
  • Loading branch information
Kishan-Dhakan authored Aug 4, 2023
2 parents 5e33266 + 9fed0aa commit 4eb44a4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 25 deletions.
37 changes: 17 additions & 20 deletions .github/workflows/build-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19.4
go-version: 1.20.4

- name: Clean build
run: make clean-mobilesdk
Expand Down Expand Up @@ -90,7 +90,7 @@ jobs:
build-android:
name: Build-android
runs-on: [self-hosted, build]
runs-on: [self-hosted, arc-runner]

steps:
- name: Checkout code
Expand All @@ -99,16 +99,15 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19.4
go-version: 1.20.4

- name: Install deps
run: |
codename=$(lsb_release -c | awk '{print $2}')
echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
#codename=$(lsb_release -c | awk '{print $2}')
#echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
#echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
#echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
#sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
sudo apt-get update -y && sudo apt-get install build-essential wget unzip -y
- name: Install Java
Expand All @@ -124,12 +123,11 @@ jobs:
sdkmanager "platform-tools"
sdkmanager "platforms;android-29"
sdkmanager "build-tools;29.0.2"
- uses: nttld/setup-ndk@v1
id: setup-ndk
with:
ndk-version: r21d



- name: Clean build
run: make clean-mobilesdk
Expand Down Expand Up @@ -204,7 +202,7 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19.4
go-version: 1.20.4

- name: Clean build
run: make clean-mobilesdk
Expand Down Expand Up @@ -268,7 +266,7 @@ jobs:
build-windows:
name: Build-windows
runs-on: [self-hosted, build]
runs-on: [self-hosted, arc-runner]

steps:
- name: Checkout code
Expand All @@ -277,16 +275,15 @@ jobs:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: 1.19.4
go-version: 1.20.4

- name: Install deps
run: |
codename=$(lsb_release -c | awk '{print $2}')
echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
#codename=$(lsb_release -c | awk '{print $2}')
#echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
#echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
#echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
#sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
sudo apt-get update -y && sudo apt-get install build-essential wget -y
- name: Build windows
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -174,11 +174,11 @@ jobs:

- name: Install deps
run: |
codename=$(lsb_release -c | awk '{print $2}')
echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
# codename=$(lsb_release -c | awk '{print $2}')
# echo "deb http://mirror.genesisadaptive.com/ubuntu/ $codename main" > ./gitaction.list
# echo "deb http://mirror.math.princeton.edu/pub/ubuntu/ $codename main" ./gitaction.list
# echo "deb http://mirror.pit.teraswitch.com/ubuntu/ $codename main" >> ./gitaction.list
# sudo mv -f ./gitaction.list /etc/apt/sources.list.d/
sudo apt-get update -y && sudo apt-get install build-essential wget -y
Expand Down

0 comments on commit 4eb44a4

Please sign in to comment.