diff --git a/.github/workflows/main-rust.yml b/.github/workflows/main-rust.yml index 44476a1..0d96cfd 100644 --- a/.github/workflows/main-rust.yml +++ b/.github/workflows/main-rust.yml @@ -32,7 +32,7 @@ jobs: # Building actions - name: Build - run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-gnu + run: RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-unknown-linux-musl - name: Versions id: version @@ -45,17 +45,17 @@ jobs: run: cargo publish --no-verify --token ${{ secrets.CARGO_REGISTRY_TOKEN }} - name: Calculate SHA512 checksum - run: sha512sum target/x86_64-unknown-linux-gnu/release/redlib > redlib.sha512 + run: sha512sum target/x86_64-unknown-linux-musl/release/redlib > redlib.sha512 - name: Calculate SHA256 checksum - run: sha256sum target/x86_64-unknown-linux-gnu/release/redlib > redlib.sha256 + run: sha256sum target/x86_64-unknown-linux-musl/release/redlib > redlib.sha256 - uses: actions/upload-artifact@v3 name: Upload a Build Artifact with: name: redlib path: | - target/x86_64-unknown-linux-gnu/release/redlib + target/x86_64-unknown-linux-musl/release/redlib redlib.sha512 redlib.sha256 @@ -68,7 +68,7 @@ jobs: name: ${{ steps.version.outputs.VERSION }} - ${{ github.event.head_commit.message }} draft: true files: | - target/x86_64-unknown-linux-gnu/release/redlib + target/x86_64-unknown-linux-musl/release/redlib redlib.sha512 redlib.sha256 body: | diff --git a/.replit b/.replit index e973713..b857cc1 100644 --- a/.replit +++ b/.replit @@ -1,2 +1,2 @@ -run = "while :; do set -ex; nix-env -iA nixpkgs.unzip; curl -o./redlib.zip -fsSL -- https://nightly.link/redlib-org/redlib/workflows/main-rust/main/redlib.zip; unzip -n redlib.zip; mv target/x86_64-unknown-linux-gnu/release/redlib .; chmod +x redlib; set +e; ./redlib -H 63115200; sleep 1; done" +run = "while :; do set -ex; nix-env -iA nixpkgs.unzip; curl -o./redlib.zip -fsSL -- https://nightly.link/redlib-org/redlib/workflows/main-rust/main/redlib.zip; unzip -n redlib.zip; mv target/x86_64-unknown-linux-musl/release/redlib .; chmod +x redlib; set +e; ./redlib -H 63115200; sleep 1; done" language = "bash"