diff --git a/.github/workflows/alpine_x86_64_release.yml b/.github/workflows/alpine_x86_64_release.yml index f0e49d5..9149176 100644 --- a/.github/workflows/alpine_x86_64_release.yml +++ b/.github/workflows/alpine_x86_64_release.yml @@ -2,7 +2,8 @@ on: push: tags: - "v*.*.*" - + branches: + - master jobs: build: runs-on: ubuntu-latest @@ -18,11 +19,11 @@ jobs: - name: Download source uses: actions/checkout@v2 - name: Install shards - run: shards check || shards install - - name: Check formatting - run: crystal tool format --check - - name: Run tests - run: crystal spec --order=random --error-on-warnings + run: shards check || shards install --without-development + # - name: Check formatting + # run: crystal tool format --check + # - name: Run tests + # run: crystal spec --order=random --error-on-warnings - name: package information run: | echo "BINARY_NAME=myip" >> $GITHUB_ENV @@ -31,10 +32,10 @@ jobs: - name: release binary id: release run: | - shards build --production --release --progress --static --no-debug --link-flags="-s -Wl,-z,relro,-z,now" + shards build --production --release --progress --static --no-debug -Dstrict_multi_assign -Dno_number_autocast --link-flags="-s -Wl,-z,relro,-z,now,-L/app" ASSERT_NAME=${BINARY_NAME}-${RELEASE_VERSION}-${PKG_ARCH}-unknown-linux-musl.tar.gz tar zcf ${ASSERT_NAME} bin/${BINARY_NAME} LICENSE - echo ::set-output name=ASSERT_NAME::${ASSERT_NAME} + echo "{ASSERT_NAME}={$ASSERT_NAME}" >> $GITHUB_OUTPUT - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e291cbc..8461233 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ on: push: branches: - - master + # - master - main workflow_call: diff --git a/.github/workflows/windows-msvc.yml b/.github/workflows/windows-msvc.yml index 9f6bf74..536bb25 100644 --- a/.github/workflows/windows-msvc.yml +++ b/.github/workflows/windows-msvc.yml @@ -3,7 +3,7 @@ on: tags: - "v*.*.*" branches: - - master + # - master - main jobs: