Skip to content

Commit e610d5b

Browse files
committed
fix: CI (#2)
1 parent fac1348 commit e610d5b

File tree

3 files changed

+37
-30
lines changed

3 files changed

+37
-30
lines changed

.github/workflows/docker.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,9 @@ name: Docker
88

99
on:
1010

11-
push:
12-
branches:
13-
- trunk
14-
paths-ignore:
15-
- 'docs/**'
16-
- '**.md'
17-
1811
pull_request:
1912
branches:
2013
- trunk
21-
- release/*
2214
types:
2315
- opened
2416
- reopened
@@ -29,6 +21,10 @@ on:
2921
- 'docs/**'
3022
- '**.md'
3123

24+
permissions:
25+
contents: read
26+
packages: write
27+
3228
env:
3329

3430
REGISTRY: ghcr.io

.github/workflows/release.yaml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,25 @@ name: Release
77

88
on:
99

10-
push:
10+
# Treating approved PRs into trunk as "pre-releases"
11+
pull_request_review:
1112
branches:
12-
- trunk
13+
- "trunk"
14+
types:
15+
- submitted
1316
paths-ignore:
14-
- Cargo.toml
17+
- "docs/**"
18+
- "*.md"
1519
- Cargo.lock
20+
- Cargo.toml
1621

17-
pull_request:
22+
# Treating merged PRs into trunk as "releases"
23+
push:
1824
branches:
19-
- trunk
20-
types:
21-
- ready_for_review
25+
- "trunk"
26+
paths-ignore:
27+
- "docs/**"
28+
- "*.md"
2229

2330
permissions:
2431
packages: write
@@ -80,20 +87,22 @@ jobs:
8087
# ${MAJOR}.${MINOR}.${PATCH}-${PRE-RELEASE}+${BUILD}
8188
- id: prep_release
8289
name: Prepare for Release
83-
uses: salt-labs/action-ship-it@trunk
90+
uses: salt-labs/action-its-shipping-time@trunk
8491
with:
8592
loglevel: "INFO"
8693
tag_enable: "TRUE"
8794
tag_force: "FALSE"
95+
changelog_enable: "TRUE"
8896
git_pretty_format: "* %h %G? %aN - %s"
97+
calver_enable: "TRUE"
8998
calver_scheme: "YYYY.MM.GEN"
9099
calver_split: "."
91100
calver_split_mod: "."
92101
timezone: "Australia/Sydney"
93102

94103
- id: create_release_prerelease
95104
name: Create Pre-Release
96-
if: github.event_name == 'pull_request' && github.event.pull_request.draft == false
105+
if: github.event.review.state == 'approved'
97106
uses: actions/create-release@v1
98107
env:
99108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -297,9 +306,9 @@ jobs:
297306
# Publish Docker Container
298307
#########################
299308

300-
release_publish_docker:
309+
release_publish_oci:
301310

302-
name: Publish Release to Docker
311+
name: Publish Release to registry
303312

304313
needs:
305314
- create_release

.github/workflows/rust.yaml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,9 @@ name: Rust
77

88
on:
99

10-
push:
11-
branches:
12-
- trunk
13-
paths-ignore:
14-
- 'docs/**'
15-
- '**.md'
16-
1710
pull_request:
1811
branches:
1912
- trunk
20-
- release/*
2113
types:
2214
- opened
2315
- reopened
@@ -68,9 +60,9 @@ jobs:
6860
- target: x86_64-pc-windows-msvc
6961
os: windows-latest
7062
toolchain: stable
71-
- target: aarch64-unknown-linux-gnu
72-
os: ubuntu-latest
73-
toolchain: stable
63+
#- target: aarch64-unknown-linux-gnu
64+
# os: ubuntu-latest
65+
# toolchain: stable
7466
#exclude:
7567

7668
steps:
@@ -83,9 +75,19 @@ jobs:
8375
toolchain: ${{ matrix.toolchain }}
8476
default: true
8577

78+
- id: setup_rust_arm64
79+
name: Setup the Rust environment for ARM64
80+
if: matrix.target == 'aarch64-unknown-linux-gnu' && matrix.os == 'ubuntu-latest'
81+
run: |
82+
sudo apt install gcc-multilib
83+
8684
- id: checkout_repository
8785
name: Checkout repository
8886
uses: actions/checkout@v2
87+
env:
88+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
89+
with:
90+
persist-credentials: true
8991

9092
- id: cache_artifacts_cargo_registry
9193
name: Cache Cargo registry

0 commit comments

Comments
 (0)