diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 286788e..c173ac1 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -49,7 +49,9 @@ jobs: - name: Rename artifact if: ${{ !contains('Windows', runner.os) }} - run: mv target/release/mltd mltd-git-${{ steps.hash.outputs.hash }}-${{ runner.os }} + run: | + chmod +x target/release/mltd + mv target/release/mltd mltd-git-${{ steps.hash.outputs.hash }}-${{ runner.os }} - name: Publish artifact (Windows) if: ${{ contains('Windows', runner.os) }} diff --git a/codemagic.yaml b/codemagic.yaml index 2f9fbf1..541648c 100644 --- a/codemagic.yaml +++ b/codemagic.yaml @@ -5,10 +5,14 @@ workflows: script: git submodule update --init --recursive - name: Install rust non-interactively script: curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y - - name: Use nightly rust - script: $HOME/.cargo/bin/rustup default nightly + - name: Init rust + script: $HOME/.cargo/bin/rustup default stable - name: Build script: $HOME/.cargo/bin/cargo build --release + - name: Move artifact + script: | + chmod +x target/release/mltd + mv target/release/mltd mltd-$(git describe --tags --always)-aarch64-apple-darwin artifacts: - - target/release/mltd + - mltd-*