remove setup-env action.yml
This commit is contained in:
64
.github/workflows/setup-env/action.yml
vendored
64
.github/workflows/setup-env/action.yml
vendored
@@ -1,64 +0,0 @@
|
||||
name: "setup ubuntu environement"
|
||||
description: "setup dotnet python"
|
||||
inputs:
|
||||
os:
|
||||
description: 'operating system'
|
||||
required: true
|
||||
python-version:
|
||||
description: 'python version'
|
||||
required: false
|
||||
default: '3.10'
|
||||
dotnet:
|
||||
description: 'should install dotnet ON OFF'
|
||||
required: false
|
||||
default: 'OFF'
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: install zip wget for windows
|
||||
if: ${{ startsWith(inputs.os, 'windows') }}
|
||||
shell: cmd
|
||||
run: |
|
||||
choco install zip wget --no-progress
|
||||
- name: Setup .NET 6.0
|
||||
if: ${{ inputs.dotnet == 'ON' }}
|
||||
uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: 6.0.x
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ inputs.python-version }}
|
||||
architecture: x64
|
||||
|
||||
- name: Update Path for ubuntu
|
||||
if: ${{ startsWith(inputs.os, 'ubuntu') }}
|
||||
run: echo "$HOME/.local/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Add Python binaries to path Windows
|
||||
if: ${{ startsWith(inputs.os, 'windows') }}
|
||||
run: >
|
||||
echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" |
|
||||
Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
|
||||
- name: Pip install reqs
|
||||
shell: bash
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install mypy-protobuf absl-py setuptools wheel numpy pandas virtualenv
|
||||
|
||||
- name: Install SWIG 4.1.1 for windows
|
||||
if: ${{ startsWith(inputs.os, 'windows') }}
|
||||
shell: pwsh
|
||||
run: |
|
||||
(New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip");
|
||||
Expand-Archive .\swigwin-4.1.1.zip .;
|
||||
echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||
Remove-Item .\swigwin-4.1.1.zip
|
||||
|
||||
- name: Install SWIG for Ubuntu
|
||||
if: ${{ startsWith(inputs.os, 'ubuntu') }}
|
||||
run: |
|
||||
sudo apt install -y swig
|
||||
swig -version
|
||||
|
||||
Reference in New Issue
Block a user