Skip to content

Commit

Permalink
add patch release for ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ssanj committed Apr 13, 2024
1 parent 558027f commit 00d5f25
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 75 deletions.
66 changes: 34 additions & 32 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
@@ -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
66 changes: 34 additions & 32 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 5 additions & 7 deletions .github/workflows/release-linux.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
name: linux release
on:
push:
branches:
- "fix-release-targets"
# tags:
# - "v*"
tags:
- "v*"

jobs:
release:
Expand All @@ -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
Expand All @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macos-13]
os: [macos-latest]
target: [
x86_64-apple-darwin
]
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "zat"
version = "0.11.11-1-test"
version = "0.11.12"
edition = "2021"
authors = ["Sanj Sahayam"]

Expand Down

0 comments on commit 00d5f25

Please sign in to comment.