diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml index c31c0e6..ad86a59 100644 --- a/.github/workflows/build-linux.yml +++ b/.github/workflows/build-linux.yml @@ -1,35 +1,37 @@ -# name: linux -# on: -# push: -# branches: -# - '*' +name: linux +on: + push: + branches: + - '*' -# jobs: -# test: -# runs-on: ${{ matrix.os }} -# name: (${{ matrix.target }}-${{ matrix.os }}) -# strategy: -# fail-fast: false -# matrix: -# os: [ubuntu-latest] -# target: [ -# x86_64-unknown-linux-gnu, -# ] +jobs: + test: + runs-on: ${{ matrix.os }} + name: (${{ matrix.target }}-${{ matrix.os }}) + strategy: + fail-fast: false + matrix: + os: [ubuntu-latest] + target: [ + x86_64-unknown-linux-gnu, + ] -# steps: -# - name: checkout -# uses: actions/checkout@v2 + steps: + - name: Checkout Zat + uses: actions/checkout@v4 -# # Run build -# - name: install rustup -# run: | -# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh -# sh rustup-init.sh -y --default-toolchain none -# rustup target add ${{ matrix.target }} -# - name: build -# run: | -# rustc -Vv -# cargo -V -# cargo build -# - name: test -# run: cargo test + # Run build + - name: Install rustup + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh + sh rustup-init.sh -y --default-toolchain none + rustup target add ${{ matrix.target }} + + - name: Build + run: | + rustc -Vv + cargo -V + cargo build + + - name: Run Tests + run: cargo test diff --git a/.github/workflows/build-mac.yml b/.github/workflows/build-mac.yml index 767a5cf..bb03dc3 100644 --- a/.github/workflows/build-mac.yml +++ b/.github/workflows/build-mac.yml @@ -1,35 +1,37 @@ -# name: mac -# on: -# push: -# branches: -# - '*' +name: mac +on: + push: + branches: + - '*' -# jobs: -# test: -# runs-on: ${{ matrix.os }} -# name: (${{ matrix.target }}-${{ matrix.os }}) -# strategy: -# fail-fast: false -# matrix: -# os: [macos-12, macos-13] -# target: [ -# x86_64-apple-darwin -# ] +jobs: + test: + runs-on: ${{ matrix.os }} + name: (${{ matrix.target }}-${{ matrix.os }}) + strategy: + fail-fast: false + matrix: + os: [macos-latest] + target: [ + x86_64-apple-darwin + ] -# steps: -# - name: checkout -# uses: actions/checkout@v2 + steps: + - name: Checkout Zat + uses: actions/checkout@v4 -# # Run build -# - name: install rustup -# run: | -# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh -# sh rustup-init.sh -y --default-toolchain none -# rustup target add ${{ matrix.target }} -# - name: build -# run: | -# rustc -Vv -# cargo -V -# cargo build -# - name: test -# run: cargo test + # Run build + - name: Install rustup + run: | + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh + sh rustup-init.sh -y --default-toolchain none + rustup target add ${{ matrix.target }} + + - name: Build + run: | + rustc -Vv + cargo -V + cargo build + + - name: Run Tests + run: cargo test diff --git a/.github/workflows/release-linux.yml b/.github/workflows/release-linux.yml index 46493c8..bc5f4b7 100644 --- a/.github/workflows/release-linux.yml +++ b/.github/workflows/release-linux.yml @@ -1,10 +1,8 @@ name: linux release on: push: - branches: - - "fix-release-targets" - # tags: - # - "v*" + tags: + - "v*" jobs: release: @@ -19,11 +17,11 @@ jobs: ] steps: - - name: checkout + - name: Checkout zat uses: actions/checkout@v4 # Run build - - name: install rustup + - name: Install rustup run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh sh rustup-init.sh -y --default-toolchain none @@ -43,7 +41,7 @@ jobs: echo "ARTIFACT_NAME=$RELEASE_EXEC" >> "$GITHUB_ENV" echo "RELEASE_ARTIFACT_NAME=$RELEASE_EXEC-$ZAT_VERSION-${{ matrix.os }}-${{ matrix.target }}" >> "$GITHUB_ENV" - - name: copy-artifact + - name: Copy Artifact id: copy-artifact run: | echo "RELEASE_ARTIFACT_NAME: $RELEASE_ARTIFACT_NAME" diff --git a/.github/workflows/release-mac.yml b/.github/workflows/release-mac.yml index 5412268..688c589 100644 --- a/.github/workflows/release-mac.yml +++ b/.github/workflows/release-mac.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false matrix: - os: [macos-13] + os: [macos-latest] target: [ x86_64-apple-darwin ] @@ -23,13 +23,13 @@ jobs: path: zat # Run build - - name: install rustup + - name: Install rustup run: | curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > rustup-init.sh sh rustup-init.sh -y --default-toolchain none rustup target add ${{ matrix.target }} - - name: build + - name: Build id: release-build run: | rustc -Vv diff --git a/Cargo.toml b/Cargo.toml index 7da64d3..1980d8e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "zat" -version = "0.11.11-1-test" +version = "0.11.12" edition = "2021" authors = ["Sanj Sahayam"]