Skip to content

Commit

Permalink
👷 Fix CI-built executable permission (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicks96432 authored Jan 8, 2024
1 parent 8b090fd commit dc83b5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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) }}
Expand Down
10 changes: 7 additions & 3 deletions codemagic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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-*

0 comments on commit dc83b5e

Please sign in to comment.