diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 1de0cb6..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,84 +0,0 @@ -name: Release - -on: - push: - tags: - - 'v*' - -jobs: - build: - strategy: - matrix: - os: [ubuntu-latest, macos-latest, macos-latest-xlarge] - include: - - os: ubuntu-latest - binary-name: kl-linux-amd64 - - os: macos-latest - binary-name: kl-macos-amd64 - - os: macos-latest-xlarge - binary-name: kl-macos-arm64 - - env: - GITHUB_USERNAME: ${{ secrets.ORG_GITHUB_ACTOR }} - GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }} - - runs-on: ${{ matrix.os }} - steps: - - uses: actions/checkout@v3 - - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: 19 - - - uses: extractions/setup-just@v1 - - uses: DeLaGuardo/setup-clojure@9.5 - with: - cli: latest - - - uses: graalvm/setup-graalvm@v1 - with: - version: '22.3.1' - java-version: '19' - components: 'native-image' - github-token: ${{ secrets.GITHUB_TOKEN }} - - - name: Configure Auth - run: | - cp ./build/settings.xml ~/.m2/settings.xml - - - name: Build Native Image - run: just build-native - - - name: Pack binary - run: | - tar -czf ${{ matrix.binary-name }}.tar.gz -C ./target kl - - - uses: actions/upload-artifact@v3 - with: - name: kl-native-images - if-no-files-found: error - path: ${{ matrix.binary-name }}.tar.gz - - release: - runs-on: ubuntu-latest - needs: [build] - steps: - - uses: actions/checkout@v3 - - - name: Download Binary Artifacts - uses: actions/download-artifact@v2 - with: - name: kl-native-images - path: bin - - - uses: actions/setup-java@v2 - with: - distribution: 'temurin' - java-version: 17 - - - name: Release - uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') - with: - files: | - bin/*