fork/oculante
git clone https://git.julia.blue/fork/oculante
cd03224
0.8.23
1name : Release 2 3on : 4push : 5tags : 6- "*" 7 8env : 9CARGO_TERM_COLOR : always 10MACOS_DEPLOYMENT_TARGET : 10.15 11 12jobs : 13release_job : 14name : Create release 15runs-on : ubuntu-20.04 16outputs : 17upload_url : ${{ steps.create_release.outputs.upload_url }} 18release_id : ${{ steps.create_release.outputs.id }} 19steps : 20- uses : actions/checkout@v2 21with : 22fetch-depth : '0' 23- name : Install kokai 24run : cargo install kokai 25- name : Make changelog 26run : kokai release --ref ${{ github.ref }} > changes 27- name : Create release 28id : create_release 29uses : actions/create-release@v1 30env : 31GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 32with : 33tag_name : ${{ github.ref }} 34release_name : Release ${{ github.ref }} 35draft : true 36body_path : ./changes 37 38build_job : 39name : Build release 40needs : release_job 41runs-on : ${{ matrix.os }} 42strategy : 43fail-fast : false 44matrix : 45os : [ ubuntu-20.04 , windows-2019 , macos-latest , ubuntu-latest ] 46rust : [ stable ] 47steps : 48- uses : actions/checkout@v2 49- uses : ilammy/setup-nasm@v1 50 51- name : Install latest rust 52run : rustup update 53 54- name : Install cargo cross 55run : cargo install cross 56if : matrix.os == 'ubuntu-latest' 57 58- name : Cross-compile armv7 59run : | 60cross build --release --target armv7-unknown-linux-gnueabihf --no-default-features --features notan/glsl-to-spirv 61zip -r oculante_armv7_minimal.zip target/armv7-unknown-linux-gnueabihf/release/oculante 62if : matrix.os == 'ubuntu-latest' 63 64- name : Cross-compile arm64 65run : | 66cross build --release --target aarch64-unknown-linux-gnu --no-default-features --features notan/glsl-to-spirv 67zip -r oculante_aarch64_minimal.zip target/aarch64-unknown-linux-gnu/release/oculante 68if : matrix.os == 'ubuntu-latest' 69 70- name : Install cargo bundle 71run : cargo install cargo-bundle 72if : matrix.os == 'macos-latest' 73 74- name : Install cargo universal2 75run : cargo install universal2 76if : matrix.os == 'macos-latest' 77 78- name : Install cargo deb 79run : cargo install cargo-deb 80if : matrix.os == 'ubuntu-20.04' 81 82- name : Patch azure linux deps 83run : sudo apt update 84if : matrix.os == 'ubuntu-20.04' 85 86- name : Install libheif for ubuntu 87run : | 88./build_deps_linux.sh 89cd libheif/build && sudo make install 90if : matrix.os == 'ubuntu-20.04' 91 92- name : Update Rust 93run : rustup update 94 95- name : Install linux classic dependencies 96run : sudo apt-get install libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev libasound2-dev 97if : matrix.os == 'ubuntu-20.04' 98 99- name : Install libheif for Windows 100run : | 101vcpkg integrate install 102vcpkg install libheif:x64-windows-static-md 103vcpkg install libheif:x64-windows-static 104if : matrix.os == 'windows-2019' 105 106- name : Build Windows Application 107run : cargo build --release --features heif --features notan/shaderc 108if : matrix.os == 'windows-2019' 109 110 111- name : Build Linux classic Application 112run : | 113cargo build --release --no-default-features --features notan/glsl-to-spirv 114zip -r oculante_linux_minimal.zip target/release/oculante 115cargo build --release 116zip -r oculante_linux.zip target/release/oculante 117cargo deb 118cp target/debian/oculante_*.deb oculante.deb 119if : matrix.os == 'ubuntu-20.04' 120 121 122- name : Build Mac Bundle 123run : ./build_mac.sh 124if : matrix.os == 'macos-latest' 125 126- name : Zip Mac Bundle 127run : mv target/release/bundle/osx/oculante.app . && zip -r oculante_app.zip oculante.app 128if : matrix.os == 'macos-latest' 129 130- name : Upload Linux 20.04 Release 131if : matrix.os == 'ubuntu-20.04' 132id : upload-release-asset-lin-classic 133uses : actions/upload-release-asset@v1 134env : 135GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 136with : 137upload_url : ${{ needs.release_job.outputs.upload_url }} 138asset_path : target/release/oculante 139asset_name : oculante_linux 140asset_content_type : application/zip 141 142- name : Upload ARMv7 Release 143if : matrix.os == 'ubuntu-latest' 144id : upload-release-arm 145uses : actions/upload-release-asset@v1 146env : 147GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 148with : 149upload_url : ${{ needs.release_job.outputs.upload_url }} 150asset_path : oculante_armv7_minimal.zip 151asset_name : oculante_linux_armv7_minimal.zip 152asset_content_type : application/zip 153 154- name : Upload ARM64 Release 155if : matrix.os == 'ubuntu-latest' 156id : upload-release-arm64 157uses : actions/upload-release-asset@v1 158env : 159GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 160with : 161upload_url : ${{ needs.release_job.outputs.upload_url }} 162asset_path : oculante_aarch64_minimal.zip 163asset_name : oculante_linux_aarch64_minimal.zip 164asset_content_type : application/zip 165 166- name : Upload Linux 20.04 Release zip 167if : matrix.os == 'ubuntu-20.04' 168id : upload-release-asset-lin-classic-zip 169uses : actions/upload-release-asset@v1 170env : 171GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 172with : 173upload_url : ${{ needs.release_job.outputs.upload_url }} 174asset_path : oculante_linux.zip 175asset_name : oculante_linux.zip 176asset_content_type : application/zip 177 178- name : Upload Linux 20.04 Release minimal zip 179if : matrix.os == 'ubuntu-20.04' 180id : upload-release-asset-lin-classic-zip-min 181uses : actions/upload-release-asset@v1 182env : 183GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 184with : 185upload_url : ${{ needs.release_job.outputs.upload_url }} 186asset_path : oculante_linux_minimal.zip 187asset_name : oculante_linux_minimal.zip 188asset_content_type : application/zip 189 190- name : Upload Linux 20.04 deb 191if : matrix.os == 'ubuntu-20.04' 192id : upload-release-asset-lin-classic-deb 193uses : actions/upload-release-asset@v1 194env : 195GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 196with : 197upload_url : ${{ needs.release_job.outputs.upload_url }} 198asset_path : oculante.deb 199asset_name : oculante-${{ github.ref_name }}.deb 200asset_content_type : application/zip 201 202- name : Upload Mac Release 203if : matrix.os == 'macos-latest' 204id : upload-release-asset-mac 205uses : actions/upload-release-asset@v1 206env : 207GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 208with : 209upload_url : ${{ needs.release_job.outputs.upload_url }} 210asset_path : oculante_app.zip 211asset_name : oculante_mac.zip 212asset_content_type : application/zip 213 214- name : Upload Windows 2019 Release exe 215if : matrix.os == 'windows-2019' 216id : upload-release-asset-windows-classic 217uses : actions/upload-release-asset@v1 218env : 219GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 220with : 221upload_url : ${{ needs.release_job.outputs.upload_url }} 222asset_path : target/release/oculante.exe 223asset_name : oculante.exe 224asset_content_type : application/zip 225 226publish_release : 227name : Publish release 228needs : [ build_job , release_job ] 229runs-on : ubuntu-20.04 230steps : 231- name : Test id 232run : echo "${{ needs.release_job.outputs.release_id }}" 233- name : Test id 2 234run : echo "${{ needs.release_job.outputs.upload_url }}" 235- name : Publish 236uses : eregon/publish-release@v1 237env : 238GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} 239with : 240release_id : ${{ needs.release_job.outputs.release_id }} 241 242# aur-publish: 243# runs-on: ubuntu-latest 244# steps: 245# - uses: actions/checkout@v2 246# - name: Publish AUR package 247# uses: KSXGitHub/github-actions-deploy-aur@v2.7.0 248# with: 249# pkgname: oculante 250# pkgbuild: ./PKGBUILD 251# commit_username: ${{ secrets.AUR_USERNAME }} 252# commit_email: ${{ secrets.AUR_EMAIL }} 253# ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }} 254# commit_message: Update oculante AUR package 255# ssh_keyscan_types: rsa,dsa,ecdsa,ed25519