diff --git a/.build.yml b/.build.yml new file mode 100644 index 0000000..f462a17 --- /dev/null +++ b/.build.yml @@ -0,0 +1,12 @@ +image: alpine/edge +packages: + - rustup +sources: + - https://git.sr.ht/~iptq/garbage +tasks: + - setup: | + rustup -q default nightly + - build: | + cd garbage + cargo build + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml deleted file mode 100644 index 73f1500..0000000 --- a/.github/workflows/release.yml +++ /dev/null @@ -1,49 +0,0 @@ -on: - push: - tags: - - 'v*' - -name: Create Release - -jobs: - build: - name: Create Release - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@master - - name: Build project - run: | - rustup target add x86_64-unknown-linux-musl - cargo build --release - cargo build --release --target x86_64-unknown-linux-musl - - name: Create Release - id: create_release - uses: actions/create-release@v1.0.0 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - tag_name: ${{ github.ref }} - release_name: Release ${{ github.ref }} - draft: false - prerelease: false - - name: Upload Release Asset - id: upload-release-asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: target/release/garbage - asset_name: garbage - asset_content_type: application/octet-stream - - name: Upload Musl Release Asset - id: upload-musl-release-asset - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.create_release.outputs.upload_url }} - asset_path: target/x86_64-unknown-linux-musl/release/garbage - asset_name: garbage-musl - asset_content_type: application/octet-stream