Skip to content

Fix arch package

Fix arch package #12

Workflow file for this run

name: Build and Release
on:
push:
branches: [ "main" ]
jobs:
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
run: cargo build --release
working-directory: client
- name: Rename binary
run: mv target/release/mysti-client.exe mysti-client-windows.exe
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mysti-client-windows
path: ./mysti-client-windows.exe
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install additional packages
run: sudo apt-get install -y libx11-dev xfonts-base xcb libx11-xcb-dev libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxcb-shape0-dev libxcb-xfixes0-dev
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: Build
run: cargo build --release
working-directory: client
- name: Rename binary
run: mv target/release/mysti-client mysti-client-ubuntu
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mysti-client-ubuntu
path: ./mysti-client-ubuntu
build-fedora:
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- uses: actions/checkout@v2
- name: Install additional packages
run: dnf install -y libX11-devel xorg-x11-fonts-misc xorg-x11-font-utils make automake gcc gcc-c++ kernel-devel
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Build
run: source $HOME/.cargo/env && cargo build --release
working-directory: client
- name: Rename binary
run: find . -type f -name mysti-client -exec mv {} mysti-client-fedora \;
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mysti-client-fedora
path: ./mysti-client-fedora
build-debian:
runs-on: ubuntu-latest
container:
image: debian:latest
steps:
- uses: actions/checkout@v2
- name: Install additional packages
run: apt-get update && apt-get install -y libx11-dev xfonts-base xfonts-utils make automake gcc g++ linux-headers-amd64
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Build
run: source $HOME/.cargo/env && cargo build --release
working-directory: client
- name: Rename binary
run: find . -type f -name mysti-client -exec mv {} mysti-client-debian \;
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mysti-client-debian
path: ./mysti-client-debian
build-archlinux:
runs-on: ubuntu-latest
container:
image: archlinux:latest
steps:
- uses: actions/checkout@v2
- name: Install additional packages
run: pacman -Syu --noconfirm libx11 xorg-fonts-misc xorg-mkfontscale make automake gcc linux-headers
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
source $HOME/.cargo/env
- name: Build
run: source $HOME/.cargo/env && cargo build --release
working-directory: client
- name: Rename binary
run: find . -type f -name mysti-client -exec mv {} mysti-client-archlinux \;
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: mysti-client-archlinux
path: ./mysti-client-archlinux
release:
needs: [build-windows, build-ubuntu, build-fedora, build-debian, build-archlinux]
runs-on: ubuntu-latest
steps:
- name: Download artifacts
uses: actions/download-artifact@v2
- name: Release
uses: softprops/action-gh-release@v1
with:
files: |
mysti-client-*/mysti-client-*
tag_name: latest
body: |
This is the latest release of the Mysti client.
token: ${{ secrets.GITHUB_TOKEN }}