Build and publish nightly packages #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Build and publish nightly packages | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 5 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| build-macos-binaries: | |
| # Disabled on current fork: only the shared workflows are kept, others are not required for the fork. | |
| if: false | |
| name: Build ${{ matrix.target }} | |
| runs-on: macos-latest | |
| permissions: | |
| contents: write | |
| actions: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [x86_64-apple-darwin, aarch64-apple-darwin] | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/cargo-build-macos-binary | |
| with: | |
| target: ${{ matrix.target }} | |
| version: nightly | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| build-linux-binaries: | |
| # Disabled on current fork: only the shared workflows are kept, others are not required for the fork. | |
| if: false | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu] | |
| name: Build ${{ matrix.target }} | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| actions: write | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - uses: ./.github/actions/cross-build-binary | |
| with: | |
| target: ${{ matrix.target }} | |
| version: nightly | |
| token: ${{ secrets.GITHUB_TOKEN }} |