Skip to content

Commit ab00677

Browse files
committed
Bump
2 parents a3542ae + cb9d0b6 commit ab00677

File tree

6 files changed

+14
-10
lines changed

6 files changed

+14
-10
lines changed

.github/workflows/prepare-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# docs builds are needed for anything on main, any tagged versions, and any tag
2727
# or branch starting with docs-preview
2828
needs: check_docs_rebuild
29-
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' }}
29+
if: ${{ needs.check_docs_rebuild.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
3030
runs-on: [self-hosted, linux, x64, fast]
3131
steps:
3232
- name: Checkout Yosys

.github/workflows/test-verific.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
test-verific:
2929
needs: pre-job
30-
if: needs.pre-job.outputs.should_skip != 'true'
30+
if: ${{ needs.pre-job.outputs.should_skip != 'true' && github.repository == 'YosysHQ/Yosys' }}
3131
runs-on: [self-hosted, linux, x64, fast]
3232
steps:
3333
- name: Checkout Yosys

.github/workflows/update-flake-lock.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66

77
jobs:
88
lockfile:
9+
if: github.repository == 'YosysHQ/Yosys'
910
runs-on: ubuntu-latest
1011
steps:
1112
- name: Checkout repository

.github/workflows/version.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
jobs:
99
bump-version:
10+
if: github.repository == 'YosysHQ/Yosys'
1011
runs-on: ubuntu-latest
1112
steps:
1213
- name: Checkout
@@ -18,19 +19,16 @@ jobs:
1819
- name: Take last commit
1920
id: log
2021
run: echo "message=$(git log --no-merges -1 --oneline)" >> $GITHUB_OUTPUT
21-
- name: Take repository
22-
id: repo
23-
run: echo "message=$GITHUB_REPOSITORY" >> $GITHUB_OUTPUT
2422
- name: Bump version
25-
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
23+
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
2624
run: |
2725
make bumpversion
2826
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
2927
git config --local user.name "github-actions[bot]"
3028
git add Makefile
3129
git commit -m "Bump version"
3230
- name: Push changes # push the output folder to your repo
33-
if: "!contains(steps.log.outputs.message, 'Bump version') && contains(steps.repo.outputs.message, 'YosysHQ/yosys')"
31+
if: ${{ !contains(steps.log.outputs.message, 'Bump version') }}
3432
uses: ad-m/github-push-action@master
3533
with:
3634
github_token: ${{ secrets.GITHUB_TOKEN }}

kernel/rtlil.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ int RTLIL::IdString::last_created_idx_[8];
4848
int RTLIL::IdString::last_created_idx_ptr_;
4949
#endif
5050

51-
#define X(N) const RTLIL::IdString RTLIL::ID::N(RTLIL::StaticId::N);
51+
#define X(_id) const RTLIL::IdString RTLIL::IDInternal::_id(RTLIL::StaticId::_id);
5252
#include "kernel/constids.inc"
5353
#undef X
5454

kernel/rtlil.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,9 +495,14 @@ inline bool RTLIL::IdString::operator!=(const RTLIL::StaticIdString &rhs) const
495495
}
496496

497497
namespace RTLIL {
498-
namespace ID {
498+
namespace IDInternal {
499499
#define X(_id) extern const IdString _id;
500500
#include "kernel/constids.inc"
501+
#undef X
502+
}
503+
namespace ID {
504+
#define X(_id) constexpr StaticIdString _id(StaticId::_id, IDInternal::_id);
505+
#include "kernel/constids.inc"
501506
#undef X
502507
}
503508
}
@@ -508,7 +513,7 @@ struct IdTableEntry {
508513
};
509514

510515
constexpr IdTableEntry IdTable[] = {
511-
#define X(_id) {#_id, RTLIL::StaticIdString(RTLIL::StaticId::_id, RTLIL::ID::_id)},
516+
#define X(_id) {#_id, ID::_id},
512517
#include "kernel/constids.inc"
513518
#undef X
514519
};

0 commit comments

Comments
 (0)