fork/livesplit-one-desktop
git clone https://git.julia.blue/fork/livesplit-one-desktop
5c981a5
v0.0.1
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 : Select XCode to use 116if : matrix.target == 'aarch64-apple-darwin' 117run : | 118sudo xcode-select -s "/Applications/Xcode_12.3.app" 119sudo rm -Rf /Library/Developer/CommandLineTools/SDKs/* 120 121- name : Install cross 122if : matrix.cross == '' 123run : sh .github/workflows/install.sh 124env : 125OS_NAME : ${{ matrix.os }} 126 127- name : Install Dependencies 128if : matrix.os == 'ubuntu-latest' 129run : | 130sudo apt-get install libxkbcommon-dev libwayland-cursor0 libwayland-dev 131 132- name : Build 133if : matrix.dylib == '' 134run : sh .github/workflows/build.sh 135env : 136TARGET : ${{ matrix.target }} 137SKIP_CROSS : ${{ matrix.cross }} 138IS_DEPLOY : ${{ startsWith(github.ref, 'refs/tags/') && (matrix.release_anyway != '' || !(startsWith(matrix.toolchain, 'nightly') || startsWith(matrix.toolchain, 'beta'))) }} 139FEATURES : ${{ matrix.features }} 140OS_NAME : ${{ matrix.os }} 141 142- name : Prepare Release 143if : startsWith(github.ref, 'refs/tags/') && matrix.release == '' 144shell : bash 145run : .github/workflows/before_deploy.sh 146env : 147OS_NAME : ${{ matrix.os }} 148TARGET : ${{ matrix.target }} 149PLUGIN_BITS : ${{ matrix.bits || '64bit' }} 150 151- name : Release 152if : startsWith(github.ref, 'refs/tags/') && matrix.release == '' 153uses : softprops/action-gh-release@v1 154with : 155files : livesplit-one-*.* 156env : 157GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 158 159clippy : 160runs-on : ubuntu-latest 161steps : 162- name : Checkout Commit 163uses : actions/checkout@v2 164 165- name : Install Rust 166uses : hecrj/setup-rust-action@v1 167with : 168components : clippy 169 170- name : Cache 171uses : Swatinem/rust-cache@ce325b60658c1b38465c06cc965b79baf32c1e72 172with : 173key : ${{ matrix.target }} 174 175- name : Install Dependencies 176run : | 177sudo apt-get install libxkbcommon-dev libwayland-cursor0 libwayland-dev 178 179- name : Run Clippy 180run : cargo clippy --all-features 181 182format : 183runs-on : ubuntu-latest 184steps : 185- name : Checkout Commit 186uses : actions/checkout@v2 187 188- name : Install Rust 189uses : hecrj/setup-rust-action@v1 190with : 191components : rustfmt 192 193- name : Run cargo fmt 194run : cargo fmt -- --check || true