From b997f746e73546d36cb21ae10ff8ce8d932b9ed9 Mon Sep 17 00:00:00 2001 From: Forest Anderson Date: Fri, 14 Feb 2020 00:19:06 +0000 Subject: [PATCH] Angelonfira/test action macosx build --- .github/workflows/artifacts.yml | 60 +++++++++++++++++++++++++++++++++ CHANGELOG.md | 1 + 2 files changed, 61 insertions(+) create mode 100644 .github/workflows/artifacts.yml diff --git a/.github/workflows/artifacts.yml b/.github/workflows/artifacts.yml new file mode 100644 index 0000000000..e5d6afb795 --- /dev/null +++ b/.github/workflows/artifacts.yml @@ -0,0 +1,60 @@ +# This workflow will create artifacts for all merges into master +# It will include linux, macos binaries with assets and an msi installer. + +name: Artifacts + +on: + schedule: + - cron: '0 0 * * *' + +jobs: + release-macos: + runs-on: [macos-latest] + steps: + # LFS Checkout from Gitlab + - name: Gitlab LFS Checkout + run: | + mkdir -p $RUNNER_WORKSPACE/veloren + git init $RUNNER_WORKSPACE/veloren + cd $RUNNER_WORKSPACE/veloren + git remote add origin https://gitlab.com/veloren/veloren.git/ + git -c protocol.version=2 fetch --no-tags --prune --progress --no-recurse-submodules --depth=1 origin +$GITHUB_SHA:refs/remotes/origin/$(echo $GITHUB_REF | cut -c 12-) + git checkout --progress --force -B $(echo $GITHUB_REF | cut -c 12-) refs/remotes/origin/$(echo $GITHUB_REF | cut -c 12-) + git log -1 + # Prepare toolchain + - name: Pull toolchain + uses: actions-rs/toolchain@v1 + with: + profile: minimal + # Cache + - name: Cache cargo registry + uses: actions/cache@v1 + with: + path: ~/.cargo/registry + key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo index + uses: actions/cache@v1 + with: + path: ~/.cargo/git + key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }} + - name: Cache cargo build + uses: actions/cache@v1 + with: + path: target + key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }} + # Build & Package airshipper + - name: Build + run: cargo build + - name: Package + run: | + mkdir -p artifact/ + mkdir -p artifact/assets + cp -r assets/ artifact/assets/ + cp target/debug/veloren-server-cli artifact/ + cp target/debug/veloren-voxygen artifact/ + # Upload artifact + - name: Upload artifact + uses: actions/upload-artifact@v1 + with: + name: airshipper-macos + path: artifact/ diff --git a/CHANGELOG.md b/CHANGELOG.md index bb06df66e4..1dbe722639 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added music system - Added zoomable and rotatable minimap - Added rotating orientation marker to main-map +- Added daily Mac builds ### Changed - Brighter / higher contrast main-map