Skip to content

install: Back to the github releases for the install script #21

install: Back to the github releases for the install script

install: Back to the github releases for the install script #21

name: Build & Deploy TorizonCore
on:
push:
branches:
- main
jobs:
build-deploy:
runs-on: ubuntu-latest
name: Build & Deploy
env:
RUST_BACKTRACE: 1
steps:
- uses: actions/checkout@v3
- name: Setup
shell: pwsh
run: |
sudo apt-get -q -y install `
libfontconfig1 `
mesa-utils `
x11-xserver-utils `
libxkbcommon-x11-0 `
libfontconfig1 `
libfreetype6 `
libgbm1 `
libinput10 `
libxkbcommon0 `
xkb-data `
xvfb
- name: Build
shell: pwsh
run: |
xvfb-run pwsh -f ./.vscode/tasks.ps1 run build-debug-local
- name: Build Container
shell: pwsh
run: |
pwsh -f ./.vscode/tasks.ps1 run build-container-torizon-release-amd64
docker login -u matheuscastello -p ${{ secrets.DOCKER_PSSWD }}
docker compose -f docker-compose.yml push torizon-emulator-manager
- name: Release
shell: pwsh
env:
GH_TOKEN: ${{ secrets.GH_TKN }}
run: |
$_tag = Get-Content -Path ./VERSION
zip -r "Torizon-Emulator-Manager-$_tag.zip" ./bin/Release/net8.0/linux-x64/publish/
gh repo set-default commontorizon/torizonEmulatorManager
gh release create `
--target main $_tag `
-t "Torizon Emulator Manager $_tag" `
-n "Torizon Emulator Manager $_tag" `
install.sh `
docker-compose.yml `
torizon-emulator-manager