From 17aad3800b9bab77ae6ff386d865031df2c044ff Mon Sep 17 00:00:00 2001 From: MrLetsplay Date: Sun, 6 Apr 2025 10:49:01 +0200 Subject: [PATCH] Update workflow --- .gitea/workflows/build_linux_docker.yml | 28 +++++++++++++++---------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/build_linux_docker.yml b/.gitea/workflows/build_linux_docker.yml index 88a4d5c8..52462212 100644 --- a/.gitea/workflows/build_linux_docker.yml +++ b/.gitea/workflows/build_linux_docker.yml @@ -13,9 +13,8 @@ jobs: - name: Install dependencies run: > curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y && - source ~/.profile && curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.2/install.sh | bash && - \. "$HOME/.nvm/nvm.sh" && + source ~/.bashrc && nvm install 22 && nvm use 22 && curl --proto "=https" -L https://yarnpkg.com/latest.tar.gz | tar xvz && mv yarn-* /yarn && ln -s /yarn/bin/yarn /usr/bin/yarn && @@ -24,29 +23,36 @@ jobs: - name: Install packages run: > - \. "$HOME/.nvm/nvm.sh" && - source ~/.profile && + source ~/.bashrc && nvm use 22 && yarn add matrix-seshat && yarn - name: Fetch element run: > - \. "$HOME/.nvm/nvm.sh" && - source ~/.profile && + source ~/.bashrc && nvm use 22 && yarn run fetch --noverify --cfgdir cringe - name: Build natives run: > - \. "$HOME/.nvm/nvm.sh" && - source ~/.profile && + source ~/.bashrc && nvm use 22 && SQLCIPHER_BUNDLED=1 yarn run build:native - name: Build packages run: > - \. "$HOME/.nvm/nvm.sh" && - source ~/.profile && + source ~/.bashrc && nvm use 22 && - yarn run build --linux rpm --linux deb --linux tar.xz --linux AppImage --win squirrel + yarn run build --linux rpm --linux deb --linux tar.xz --linux AppImage --win squirrel --publish never + + - name: Publish artifacts + uses: actions/upload-artifact@v4 + with: + name: element-desktop + path: | + dist/element-desktop*.rpm + dist/Element*.AppImage + dist/element-desktop*.deb + dist/element-desktop*.tar.xz + dist/squirrel-windows/Element*.exe