fork/glide
git clone https://git.julia.blue/fork/glide
a231167
v0.1.0
1name : Package 2 3on : 4push : 5tags : 6- "v*.*.*" 7branches : 8- main 9 10env : 11CARGO_INCREMENTAL : 0 12CARGO_NET_RETRY : 10 13CARGO_TERM_COLOR : always 14RUST_BACKTRACE : 1 15RUSTUP_MAX_RETRIES : 10 16 17jobs : 18package : 19runs-on : macos-15 20permissions : 21contents : write 22 23steps : 24- name : Install cargo-packager 25uses : taiki-e/cache-cargo-install-action@v2 26with : 27tool : cargo-packager@0.11.8 28 29- name : Install parse-changelog 30uses : taiki-e/cache-cargo-install-action@v2 31with : 32tool : parse-changelog@0.6.14 33 34- uses : actions/checkout@v4 35with : 36persist-credentials : false 37 38# release-please normally parses the pull request description for release notes. 39# Instead of having two sources of truth, get them from the changelog. 40# 41# The workflow still isn't perfect because release-please can overwrite 42# the PR if new changes land, but it's good enough for now. 43- name : Parse changelog 44if : github.ref_type == 'tag' 45run : | 46GLIDE_VERSION=$(cargo metadata --format-version=1 --no-deps | jq -r '.packages[] | select(.name == "glide-wm") | .version') 47parse-changelog CHANGELOG.md $GLIDE_VERSION > CHANGELOG_version.md 48 49- name : Install latest stable 50run : | 51rustup update stable 52rustup target add aarch64-apple-darwin 53rustup target add x86_64-apple-darwin 54 55- name : Build 56run : | 57cargo build --release --verbose --locked --target aarch64-apple-darwin 58cargo build --release --verbose --locked --target x86_64-apple-darwin 59 60- name : Import code-signing certificates 61uses : apple-actions/import-codesign-certs@v3 62with : 63p12-file-base64 : ${{ secrets.BUILD_CERTIFICATE_BASE64 }} 64p12-password : ${{ secrets.P12_PASSWORD }} 65 66- name : Import notarization API key 67if : github.ref_type == 'tag' 68env : 69APPLE_API_KEY_BASE64 : ${{ secrets.APPLE_API_KEY_BASE64 }} 70run : | 71echo "$APPLE_API_KEY_BASE64" | base64 --decode > AuthKey.p8 72 73- name : Package, sign, and notarize 74env : 75APPLE_API_KEY : ${{ secrets.APPLE_API_KEY }} 76APPLE_API_ISSUER : ${{ secrets.APPLE_API_ISSUER }} 77APPLE_API_KEY_PATH : AuthKey.p8 78run : | 79if [[ "${{ github.ref_type }}" != "tag" ]]; then 80# Disable notarization. 81unset APPLE_API_KEY 82unset APPLE_API_ISSUER 83fi 84# For debugging; should show the signing identity 85security find-identity -v -p codesigning 86# Package, sign, and notarize 87cargo packager --release --target aarch64-apple-darwin 88cargo packager --release --target x86_64-apple-darwin 89 90- uses : actions/upload-artifact@v4 91with : 92path : target/*-apple-darwin/release/Glide_*.dmg 93 94- name : Release 95uses : softprops/action-gh-release@v2 96if : github.ref_type == 'tag' 97with : 98files : | 99target/aarch64-apple-darwin/release/Glide_*.dmg 100target/x86_64-apple-darwin/release/Glide_*.dmg 101fail_on_unmatched_files : true 102body_path : CHANGELOG_version.md 103# To keep release-please's notes, comment the line above and uncomment 104# these lines: 105# body: "" 106# append_body: true