fork/livesplit-one-desktop
git clone https://git.julia.blue/fork/livesplit-one-desktop
443fc54
master
1name : Rust 2 3on : 4pull_request : 5push : 6branches : 7- 'master' 8tags : 9- '*' 10 11env : 12CARGO_TERM_COLOR : always 13 14jobs : 15build : 16runs-on : ${{ matrix.os }} 17strategy : 18fail-fast : false 19matrix : 20label : 21# - Windows aarch64 22# - Windows i686 23- Windows x86_64 24# - Linux arm Hardware Float 25# - Linux armv7 Hardware Float 26# - Linux aarch64 27# - Linux i686 28- Linux x86_64 29# - macOS aarch64 30- macOS x86_64 31 32include : 33# - label: Windows aarch64 34# target: aarch64-pc-windows-msvc 35# os: windows-latest 36# cross: skip 37# install_target: true 38 39# - label: Windows i686 40# target: i686-pc-windows-msvc 41# os: windows-latest 42# cross: skip 43# install_target: true 44# bits: 32bit 45 46- label : Windows x86_64 47target : x86_64-pc-windows-msvc 48os : windows-latest 49cross : skip 50 51# - label: Linux arm Hardware Float 52# target: arm-unknown-linux-gnueabihf 53# os: ubuntu-latest 54# features: --no-default-features 55# bits: 32bit 56 57# - label: Linux armv7 Hardware Float 58# target: armv7-unknown-linux-gnueabihf 59# os: ubuntu-latest 60# features: --no-default-features 61# bits: 32bit 62 63# - label: Linux aarch64 64# target: aarch64-unknown-linux-gnu 65# os: ubuntu-latest 66# features: --no-default-features 67 68# - label: Linux i686 69# target: i686-unknown-linux-gnu 70# os: ubuntu-latest 71# features: --no-default-features 72# bits: 32bit 73 74- label : Linux x86_64 75target : x86_64-unknown-linux-gnu 76os : ubuntu-latest 77cross : skip 78 79# - label: macOS aarch64 80# target: aarch64-apple-darwin 81# os: macOS-latest 82# cross: skip 83# install_target: true 84 85- label : macOS x86_64 86target : x86_64-apple-darwin 87os : macOS-latest 88cross : skip 89 90steps : 91- name : Checkout Commit 92uses : actions/checkout@v2 93 94- name : Install Rust 95uses : hecrj/setup-rust-action@v1 96with : 97rust-version : ${{ matrix.toolchain || 'stable' }} 98 99- name : Install Target 100if : matrix.install_target != '' 101run : rustup target add ${{ matrix.target }} 102 103- name : Install cross 104if : matrix.cross == '' 105run : sh .github/workflows/install.sh 106env : 107OS_NAME : ${{ matrix.os }} 108TARGET : ${{ matrix.target }} 109 110- name : Cache 111uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 112with : 113key : ${{ matrix.target }} 114 115- name : Install cross 116if : matrix.cross == '' 117run : sh .github/workflows/install.sh 118env : 119OS_NAME : ${{ matrix.os }} 120 121- name : Install Dependencies 122if : matrix.os == 'ubuntu-latest' 123run : | 124sudo apt-get install libxkbcommon-dev libwayland-cursor0 libwayland-dev 125 126- name : Build 127if : matrix.dylib == '' 128run : sh .github/workflows/build.sh 129env : 130TARGET : ${{ matrix.target }} 131SKIP_CROSS : ${{ matrix.cross }} 132IS_DEPLOY : ${{ startsWith(github.ref, 'refs/tags/') && (matrix.release_anyway != '' || !(startsWith(matrix.toolchain, 'nightly') || startsWith(matrix.toolchain, 'beta'))) }} 133FEATURES : ${{ matrix.features }} 134OS_NAME : ${{ matrix.os }} 135 136- name : Prepare Release 137if : startsWith(github.ref, 'refs/tags/') && matrix.release == '' 138shell : bash 139run : .github/workflows/before_deploy.sh 140env : 141OS_NAME : ${{ matrix.os }} 142TARGET : ${{ matrix.target }} 143PLUGIN_BITS : ${{ matrix.bits || '64bit' }} 144 145- name : Release 146if : startsWith(github.ref, 'refs/tags/') && matrix.release == '' 147uses : softprops/action-gh-release@v1 148with : 149files : livesplit-one-*.* 150env : 151GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 152 153clippy : 154runs-on : ubuntu-latest 155steps : 156- name : Checkout Commit 157uses : actions/checkout@v2 158 159- name : Install Rust 160uses : hecrj/setup-rust-action@v1 161with : 162components : clippy 163 164- name : Cache 165uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 166with : 167key : ${{ matrix.target }} 168 169- name : Install Dependencies 170run : | 171sudo apt-get install libxkbcommon-dev libwayland-cursor0 libwayland-dev 172 173- name : Run Clippy 174run : cargo clippy --all-features 175 176format : 177runs-on : ubuntu-latest 178steps : 179- name : Checkout Commit 180uses : actions/checkout@v2 181 182- name : Install Rust 183uses : hecrj/setup-rust-action@v1 184with : 185components : rustfmt 186 187- name : Run cargo fmt 188run : cargo fmt -- --check || true