ci: refactor installing go and use the github action
This commit is contained in:
parent
cfdd7748d7
commit
0625b1acbb
|
@ -21,25 +21,18 @@ jobs:
|
|||
with:
|
||||
node-version: 18.x
|
||||
cache: 'npm'
|
||||
- name: Setup Golang
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
go-version: 1.19
|
||||
- name: Setup Golang
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install bsdmainutils -y bison;
|
||||
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer);
|
||||
source ~/.gvm/scripts/gvm || true;
|
||||
gvm install go1.4 -B;
|
||||
gvm use go1.4 --default;
|
||||
gvm install go1.19 -B;
|
||||
VERSION=0.28.1;
|
||||
TINYGO="tinygo_${VERSION}_amd64.deb";
|
||||
wget -q https://github.com/tinygo-org/tinygo/releases/download/v$VERSION/$TINYGO;
|
||||
sudo dpkg -i $TINYGO && rm $TINYGO;
|
||||
- name: Fetch Wasm Deps
|
||||
run: |
|
||||
source ~/.gvm/scripts/gvm || true;
|
||||
gvm use go1.19 --default || true;
|
||||
set -x;
|
||||
cd src/golang;
|
||||
go get;
|
||||
run: cd src/golang && go get
|
||||
- run: npm ci
|
||||
- run: npm run build --if-present
|
||||
- name: Install SSH key
|
||||
|
|
Loading…
Reference in New Issue